tx · 2fTGvbKSQtbrmhkezxJDqjgVPzeLQgc526X19bg7cqh3 3N7wjRDZ2ABrsnoCx4VQX3RP3r3DPkj9eDx: -0.01000000 Waves 2021.07.25 23:45 [1629669] smart account 3N7wjRDZ2ABrsnoCx4VQX3RP3r3DPkj9eDx > SELF 0.00000000 Waves
{ "type": 13, "id": "2fTGvbKSQtbrmhkezxJDqjgVPzeLQgc526X19bg7cqh3", "fee": 1000000, "feeAssetId": null, "timestamp": 1627245939514, "version": 2, "chainId": 84, "sender": "3N7wjRDZ2ABrsnoCx4VQX3RP3r3DPkj9eDx", "senderPublicKey": "6qoAe8r1esyuGECiN4UZSvi5RpyExfXXS8izyNwWZaJP", "proofs": [ "3QpxBuhKZcm4NkczL3K121oJkHGiZm6xqnJzwWP1B2aCCyAbicsJVHSH1KgQ9SyHKtSx6eBa8McJfyuHZTpxpxPg" ], "script": "base64:AAIFAAAAAAAABH4IAhIECgIICBoJCgJhMRIDaW52GgoKAmEyEgRjYXJkGgsKAmEzEgVjbGFzcxoTCgJhNBINdHJhbnNhY3Rpb25JZBoQCgJhNRIKY3VycmVudEtleRoPCgJhNhIJcGF5QW1vdW50GhUKAmE3Eg9jdXJyZW50S2V5Qnl0ZXMaDgoCYTgSCGNhcmROYW1lGhsKAmE5EhVjYXJkTmFtZUN1cnJlbnRQbGF5ZXIaDAoCYjESBnVuZGVhZBoPCgJiMhIJY2FyZHNHYW1lGg8KAmIzEgljbGFzc0dhbWUaEAoCYjQSCmFzc2V0c0dhbWUaFwoCYjUSEWN1cnJlbnRDYXJkU3RhdHVzGg0KAmI2EgckbWF0Y2gwGgcKAmI3EgF0GhYKAmI4EhBjdXJyZW50Q2FyZFNjb3JlGh0KAmI5EhdjdXJyZW50S2V5UGxheWVyQmFsYW5jZRoaCgJjMRIUY3VycmVudFBsYXllckJhbGFuY2UaFgoCYzISEHBsYXllckluVGhlQXJlbmEaGwoCYzMSFWFyZW5hS2V5UGxheWVyQmFsYW5jZRoYCgJjNBISYXJ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AAAAAmcxAgAAAB8vIHBvaW50c1JlbWFpbmluZ09uV2lubmluZ0NhcmQ6CQABpAAAAAEFAAAAAmcyCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAICAAAAFlJlc3VsdGFkbyBkYSBQYXJ0aWRhOiAJAAEsAAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgIAAAAJdXNlZENhcmQ6BQAAAAJhOAIAAAAJLyB3aW5uZXI6BQAAAAJmOQIAAAAOLyB3aW5uaW5nQ2FyZDoFAAAAAmcxAgAAAB8vIHBvaW50c1JlbWFpbmluZ09uV2lubmluZ0NhcmQ6CQABpAAAAAEFAAAAAmcyCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAIJAAEsAAAAAgIAAAAHc3RhdHVzXwUAAAACYTkCAAAABFVzZWQFAAAAA25pbAAAAACWciL6", "height": 1629669, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: 99kXEK93gmS5bLcagYpkXBsak63J3d9j1Aed1DvEVNo5 Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 5 #-} | |
2 | + | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | + | {-# CONTENT_TYPE DAPP #-} | |
4 | + | ||
5 | + | ||
6 | + | @Callable(inv) | |
7 | + | func play (card,class) = { | |
8 | + | let transactionId = toBase58String(inv.transactionId) | |
9 | + | let currentKey = inv.caller | |
10 | + | let payAmount = value(inv.payments[0].amount) | |
11 | + | let currentKeyBytes = toBase58String(inv.caller.bytes) | |
12 | + | let cardName = ((class + "_") + card) | |
13 | + | let cardNameCurrentPlayer = ((((class + "_") + card) + "_") + currentKeyBytes) | |
14 | + | let undead = base58'6pdMqnpdaD6xEf7gbkgdwKq9UhVsQTFCN1mEDvYiL5NY' | |
15 | + | let cardsGame = ["Undead_1", "Undead_2", "Undead_3", "Undead_4", "Undead_5", "Undead_7", "Undead_8", "Undead_9", "Undead_10"] | |
16 | + | let classGame = ["Undead"] | |
17 | + | let assetsGame = ["6pdMqnpdaD6xEf7gbkgdwKq9UhVsQTFCN1mEDvYiL5NY"] | |
18 | + | let currentCardStatus = match getString(this, ("status_" + cardNameCurrentPlayer)) { | |
19 | + | case t: String => | |
20 | + | t | |
21 | + | case _ => | |
22 | + | "" | |
23 | + | } | |
24 | + | let currentCardScore = match getInteger(this, cardName) { | |
25 | + | case t: Int => | |
26 | + | t | |
27 | + | case _ => | |
28 | + | 0 | |
29 | + | } | |
30 | + | let currentKeyPlayerBalance = ("balance_waves_" + currentKeyBytes) | |
31 | + | let currentPlayerBalance = match getInteger(this, currentKeyPlayerBalance) { | |
32 | + | case t: Int => | |
33 | + | t | |
34 | + | case _ => | |
35 | + | 0 | |
36 | + | } | |
37 | + | let playerInTheArena = match getString(this, "playerInTheArena") { | |
38 | + | case t: String => | |
39 | + | t | |
40 | + | case _ => | |
41 | + | "" | |
42 | + | } | |
43 | + | let arenaKeyPlayerBalance = ("balance_waves_" + playerInTheArena) | |
44 | + | let arenaPlayerBalance = match getInteger(this, arenaKeyPlayerBalance) { | |
45 | + | case t: Int => | |
46 | + | t | |
47 | + | case _ => | |
48 | + | 0 | |
49 | + | } | |
50 | + | let cardInTheArena = match getString(this, "cardInTheArena") { | |
51 | + | case t: String => | |
52 | + | t | |
53 | + | case _ => | |
54 | + | "" | |
55 | + | } | |
56 | + | let arenaCardScore = match getInteger(this, "arenaCardScore") { | |
57 | + | case t: Int => | |
58 | + | t | |
59 | + | case _ => | |
60 | + | 0 | |
61 | + | } | |
62 | + | let statusCard1 = if (( match getString(this, ((("status_" + class) + "_1_") + currentKeyBytes)) { | |
63 | + | case t: String => | |
64 | + | t | |
65 | + | case _ => | |
66 | + | "" | |
67 | + | } == "Used")) | |
68 | + | then 1 | |
69 | + | else 0 | |
70 | + | let statusCard2 = if (( match getString(this, ((("status_" + class) + "_2_") + currentKeyBytes)) { | |
71 | + | case t: String => | |
72 | + | t | |
73 | + | case _ => | |
74 | + | "" | |
75 | + | } == "Used")) | |
76 | + | then 1 | |
77 | + | else 0 | |
78 | + | let statusCard3 = if (( match getString(this, ((("status_" + class) + "_3_") + currentKeyBytes)) { | |
79 | + | case t: String => | |
80 | + | t | |
81 | + | case _ => | |
82 | + | "" | |
83 | + | } == "Used")) | |
84 | + | then 1 | |
85 | + | else 0 | |
86 | + | let statusCard4 = if (( match getString(this, ((("status_" + class) + "_4_") + currentKeyBytes)) { | |
87 | + | case t: String => | |
88 | + | t | |
89 | + | case _ => | |
90 | + | "" | |
91 | + | } == "Used")) | |
92 | + | then 1 | |
93 | + | else 0 | |
94 | + | let statusCard5 = if (( match getString(this, ((("status_" + class) + "_5_") + currentKeyBytes)) { | |
95 | + | case t: String => | |
96 | + | t | |
97 | + | case _ => | |
98 | + | "" | |
99 | + | } == "Used")) | |
100 | + | then 1 | |
101 | + | else 0 | |
102 | + | let statusCard6 = if (( match getString(this, ((("status_" + class) + "_6_") + currentKeyBytes)) { | |
103 | + | case t: String => | |
104 | + | t | |
105 | + | case _ => | |
106 | + | "" | |
107 | + | } == "Used")) | |
108 | + | then 1 | |
109 | + | else 0 | |
110 | + | let statusCard7 = if (( match getString(this, ((("status_" + class) + "_7_") + currentKeyBytes)) { | |
111 | + | case t: String => | |
112 | + | t | |
113 | + | case _ => | |
114 | + | "" | |
115 | + | } == "Used")) | |
116 | + | then 1 | |
117 | + | else 0 | |
118 | + | let statusCard8 = if (( match getString(this, ((("status_" + class) + "_8_") + currentKeyBytes)) { | |
119 | + | case t: String => | |
120 | + | t | |
121 | + | case _ => | |
122 | + | "" | |
123 | + | } == "Used")) | |
124 | + | then 1 | |
125 | + | else 0 | |
126 | + | let statusCard9 = if (( match getString(this, ((("status_" + class) + "_9_") + currentKeyBytes)) { | |
127 | + | case t: String => | |
128 | + | t | |
129 | + | case _ => | |
130 | + | "" | |
131 | + | } == "Used")) | |
132 | + | then 1 | |
133 | + | else 0 | |
134 | + | let statusCard10 = if (( match getString(this, ((("status_" + class) + "_10_") + currentKeyBytes)) { | |
135 | + | case t: String => | |
136 | + | t | |
137 | + | case _ => | |
138 | + | "" | |
139 | + | } == "Used")) | |
140 | + | then 1 | |
141 | + | else 0 | |
142 | + | let statusCards = [statusCard1, statusCard2, statusCard3, statusCard4, statusCard5, statusCard6, statusCard7, statusCard8, statusCard9, statusCard10] | |
143 | + | func foldFunc (acc,e) = (acc + e) | |
144 | + | ||
145 | + | let resultVerifyStatusCards = { | |
146 | + | let $list47634797 = statusCards | |
147 | + | let $size47634797 = size($list47634797) | |
148 | + | let $acc047634797 = 0 | |
149 | + | if (($size47634797 == 0)) | |
150 | + | then $acc047634797 | |
151 | + | else { | |
152 | + | let $acc147634797 = foldFunc($acc047634797, $list47634797[0]) | |
153 | + | if (($size47634797 == 1)) | |
154 | + | then $acc147634797 | |
155 | + | else { | |
156 | + | let $acc247634797 = foldFunc($acc147634797, $list47634797[1]) | |
157 | + | if (($size47634797 == 2)) | |
158 | + | then $acc247634797 | |
159 | + | else { | |
160 | + | let $acc347634797 = foldFunc($acc247634797, $list47634797[2]) | |
161 | + | if (($size47634797 == 3)) | |
162 | + | then $acc347634797 | |
163 | + | else { | |
164 | + | let $acc447634797 = foldFunc($acc347634797, $list47634797[3]) | |
165 | + | if (($size47634797 == 4)) | |
166 | + | then $acc447634797 | |
167 | + | else { | |
168 | + | let $acc547634797 = foldFunc($acc447634797, $list47634797[4]) | |
169 | + | if (($size47634797 == 5)) | |
170 | + | then $acc547634797 | |
171 | + | else { | |
172 | + | let $acc647634797 = foldFunc($acc547634797, $list47634797[5]) | |
173 | + | if (($size47634797 == 6)) | |
174 | + | then $acc647634797 | |
175 | + | else { | |
176 | + | let $acc747634797 = foldFunc($acc647634797, $list47634797[6]) | |
177 | + | if (($size47634797 == 7)) | |
178 | + | then $acc747634797 | |
179 | + | else { | |
180 | + | let $acc847634797 = foldFunc($acc747634797, $list47634797[7]) | |
181 | + | if (($size47634797 == 8)) | |
182 | + | then $acc847634797 | |
183 | + | else { | |
184 | + | let $acc947634797 = foldFunc($acc847634797, $list47634797[8]) | |
185 | + | if (($size47634797 == 9)) | |
186 | + | then $acc947634797 | |
187 | + | else { | |
188 | + | let $acc1047634797 = foldFunc($acc947634797, $list47634797[9]) | |
189 | + | if (($size47634797 == 10)) | |
190 | + | then $acc1047634797 | |
191 | + | else { | |
192 | + | let $acc1147634797 = foldFunc($acc1047634797, $list47634797[10]) | |
193 | + | throw("List size exceed 10") | |
194 | + | } | |
195 | + | } | |
196 | + | } | |
197 | + | } | |
198 | + | } | |
199 | + | } | |
200 | + | } | |
201 | + | } | |
202 | + | } | |
203 | + | } | |
204 | + | } | |
205 | + | } | |
206 | + | if (if (!(containsElement(classGame, class))) | |
207 | + | then !(containsElement(cardsGame, cardName)) | |
208 | + | else false) | |
209 | + | then throw("A classe enviada não existe no game! Por favor verifique suas cartas!") | |
210 | + | else if ((payAmount != 1000000)) | |
211 | + | then throw("Cada jogada possui um valor fixo de 0.01 waves.") | |
212 | + | else if ((0 >= assetBalance(currentKey, undead))) | |
213 | + | then throw("E necessário ter o token do deck em sua carteira! Para adquirir, realize a compra em Swap Decks.") | |
214 | + | else if (if ((cardInTheArena == "")) | |
215 | + | then true | |
216 | + | else (playerInTheArena == "")) | |
217 | + | then [StringEntry("playerInTheArena", currentKeyBytes), StringEntry("cardInTheArena", cardName), IntegerEntry("arenaCardScore", currentCardScore), StringEntry(("status_" + cardNameCurrentPlayer), "Used")] | |
218 | + | else if ((currentCardStatus == "Used")) | |
219 | + | then throw("Esta carta já foi utilizada! Utilize todas as cartas do deck para esta ser liberada novamente!") | |
220 | + | else { | |
221 | + | let winner = if ((currentCardScore > arenaCardScore)) | |
222 | + | then currentKeyBytes | |
223 | + | else playerInTheArena | |
224 | + | let winningCard = if ((currentCardScore > arenaCardScore)) | |
225 | + | then cardName | |
226 | + | else cardInTheArena | |
227 | + | let pointsRemainingOnWinningCard = if ((currentCardScore > arenaCardScore)) | |
228 | + | then (currentCardScore - arenaCardScore) | |
229 | + | else (arenaCardScore - currentCardScore) | |
230 | + | let rewardValue = if ((winner == currentKeyBytes)) | |
231 | + | then ((((payAmount * 19) / 10) / 2) + currentPlayerBalance) | |
232 | + | else if ((winner == playerInTheArena)) | |
233 | + | then ((((payAmount * 19) / 10) / 2) + arenaPlayerBalance) | |
234 | + | else throw("Código 010105. Contate o suporte!") | |
235 | + | [StringEntry("playerInTheArena", winner), StringEntry("cardInTheArena", winningCard), IntegerEntry("arenaCardScore", pointsRemainingOnWinningCard), if ((resultVerifyStatusCards == 9)) | |
236 | + | then StringEntry(((("status_" + class) + "_1_") + currentKeyBytes), "") | |
237 | + | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9)) | |
238 | + | then StringEntry(((("status_" + class) + "_2_") + currentKeyBytes), "") | |
239 | + | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9)) | |
240 | + | then StringEntry(((("status_" + class) + "_3_") + currentKeyBytes), "") | |
241 | + | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9)) | |
242 | + | then StringEntry(((("status_" + class) + "_4_") + currentKeyBytes), "") | |
243 | + | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9)) | |
244 | + | then StringEntry(((("status_" + class) + "_5_") + currentKeyBytes), "") | |
245 | + | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9)) | |
246 | + | then StringEntry(((("status_" + class) + "_6_") + currentKeyBytes), "") | |
247 | + | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9)) | |
248 | + | then StringEntry(((("status_" + class) + "_7_") + currentKeyBytes), "") | |
249 | + | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9)) | |
250 | + | then StringEntry(((("status_" + class) + "_8_") + currentKeyBytes), "") | |
251 | + | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9)) | |
252 | + | then StringEntry(((("status_" + class) + "_9_") + currentKeyBytes), "") | |
253 | + | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9)) | |
254 | + | then StringEntry(((("status_" + class) + "_10_") + currentKeyBytes), "") | |
255 | + | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), IntegerEntry(("balance_waves_" + winner), rewardValue), StringEntry(((("history_" + currentKeyBytes) + "_") + transactionId), ((((((((((("usedCard:" + cardName) + "/ cardInTheArena: ") + cardInTheArena) + "/ arenaCardScore:") + toString(arenaCardScore)) + "/ winner:") + winner) + "/ winningCard:") + winningCard) + "/ pointsRemainingOnWinningCard:") + toString(pointsRemainingOnWinningCard))), StringEntry("Resultado da Partida: ", ((((((("usedCard:" + cardName) + "/ winner:") + winner) + "/ winningCard:") + winningCard) + "/ pointsRemainingOnWinningCard:") + toString(pointsRemainingOnWinningCard))), StringEntry(("status_" + cardNameCurrentPlayer), "Used")] | |
256 | + | } | |
257 | + | } | |
258 | + | ||
259 | + |
github/deemru/w8io/169f3d6 25.31 ms ◑