tx · AU2MbzgvgsvU9yHc3MUKgDKj25s7JkXLPqaWb18aYHfp

3N7wjRDZ2ABrsnoCx4VQX3RP3r3DPkj9eDx:  -0.01000000 Waves

2021.07.26 10:30 [1630319] smart account 3N7wjRDZ2ABrsnoCx4VQX3RP3r3DPkj9eDx > SELF 0.00000000 Waves

{ "type": 13, "id": "AU2MbzgvgsvU9yHc3MUKgDKj25s7JkXLPqaWb18aYHfp", "fee": 1000000, "feeAssetId": null, "timestamp": 1627284663074, "version": 2, "chainId": 84, "sender": "3N7wjRDZ2ABrsnoCx4VQX3RP3r3DPkj9eDx", "senderPublicKey": "6qoAe8r1esyuGECiN4UZSvi5RpyExfXXS8izyNwWZaJP", "proofs": [ "2Lbj554XPwmuKdfMbYNz4VD18ZrefcFkN5da1ji9Thx3SrWDJsmhLo2rKuR31HdwSASBSh4NKdb4433wp6yRj2ob" ], "script": "base64:AAIFAAAAAAAAAAgIAhIECgIICAAAAAAAAAABAAAAA2ludgEAAAAEcGxheQAAAAIAAAAEY2FyZAAAAAVjbGFzcwQAAAANdHJhbnNhY3Rpb25JZAkAAlgAAAABCAUAAAADaW52AAAADXRyYW5zYWN0aW9uSWQEAAAACmN1cnJlbnRLZXkIBQAAAANpbnYAAAAGY2FsbGVyBAAAAAlwYXlBbW91bnQJAQAAAAV2YWx1ZQAAAAEICQABkQAAAAIIBQAAAANpbnYAAAAIcGF5bWVudHMAAAAAAAAAAAAAAAAGYW1vdW50BAAAAA9jdXJyZW50S2V5Qnl0ZXMJAAJYAAAAAQgIBQAAAANpbnYAAAAGY2FsbGVyAAAABWJ5dGVzBAAAAAhjYXJkTmFtZQkAASwAAAACCQABLAAAAAIFAAAABWNsYXNzAgAAAAFfBQAAAARjYXJkBAAAABVjYXJkTmFtZUN1cnJlbnRQbGF5ZXIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgUAAAAFY2xhc3MCAAAAAV8FAAAABGNhcmQCAAAAAV8FAAAAD2N1cnJlbnRLZXl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yBwb2ludHNSZW1haW5pbmdPbldpbm5pbmdDYXJkOgkAAaQAAAABBQAAABxwb2ludHNSZW1haW5pbmdPbldpbm5pbmdDYXJkCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAICAAAAFlJlc3VsdGFkbyBkYSBQYXJ0aWRhOiAJAAEsAAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgIAAAAJdXNlZENhcmQ6BQAAAAhjYXJkTmFtZQIAAAAJLyB3aW5uZXI6BQAAAAZ3aW5uZXICAAAADi8gd2lubmluZ0NhcmQ6BQAAAAt3aW5uaW5nQ2FyZAIAAAAfLyBwb2ludHNSZW1haW5pbmdPbldpbm5pbmdDYXJkOgkAAaQAAAABBQAAABxwb2ludHNSZW1haW5pbmdPbldpbm5pbmdDYXJkCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAIJAAEsAAAAAgIAAAAHc3RhdHVzXwUAAAAVY2FyZE5hbWVDdXJyZW50UGxheWVyAgAAAARVc2VkBQAAAANuaWwAAAAA8SJm3g==", "height": 1630319, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: E1SUVZRsQuqCnEJdNiovpLZG757W4onBiw56iB8T94u3 Next: 5iDBYtFLCixmKSfenVfEX7pa3UCYpc7SjgHSBqzPPHcd Diff:
OldNewDifferences
1515 let cardsGame = ["Undead_1", "Undead_2", "Undead_3", "Undead_4", "Undead_5", "Undead_6", "Undead_7", "Undead_8", "Undead_9", "Undead_10"]
1616 let classGame = ["Undead"]
1717 let assetsGame = ["6pdMqnpdaD6xEf7gbkgdwKq9UhVsQTFCN1mEDvYiL5NY"]
18- let hd = ScriptTransfer(Address(base58'3N7wjRDZ2ABrsnoCx4VQX3RP3r3DPkj9eDx'), 1, base58'6pdMqnpdaD6xEf7gbkgdwKq9UhVsQTFCN1mEDvYiL5AS')
19- let hjk = base58'mwsu'
2018 let currentCardStatus = match getString(this, ("status_" + cardNameCurrentPlayer)) {
2119 case t: String =>
2220 t
145143 func foldFunc (acc,e) = (acc + e)
146144
147145 let resultVerifyStatusCards = {
148- let $list49374971 = statusCards
149- let $size49374971 = size($list49374971)
150- let $acc049374971 = 0
151- if (($size49374971 == 0))
152- then $acc049374971
146+ let $list47754809 = statusCards
147+ let $size47754809 = size($list47754809)
148+ let $acc047754809 = 0
149+ if (($size47754809 == 0))
150+ then $acc047754809
153151 else {
154- let $acc149374971 = foldFunc($acc049374971, $list49374971[0])
155- if (($size49374971 == 1))
156- then $acc149374971
152+ let $acc147754809 = foldFunc($acc047754809, $list47754809[0])
153+ if (($size47754809 == 1))
154+ then $acc147754809
157155 else {
158- let $acc249374971 = foldFunc($acc149374971, $list49374971[1])
159- if (($size49374971 == 2))
160- then $acc249374971
156+ let $acc247754809 = foldFunc($acc147754809, $list47754809[1])
157+ if (($size47754809 == 2))
158+ then $acc247754809
161159 else {
162- let $acc349374971 = foldFunc($acc249374971, $list49374971[2])
163- if (($size49374971 == 3))
164- then $acc349374971
160+ let $acc347754809 = foldFunc($acc247754809, $list47754809[2])
161+ if (($size47754809 == 3))
162+ then $acc347754809
165163 else {
166- let $acc449374971 = foldFunc($acc349374971, $list49374971[3])
167- if (($size49374971 == 4))
168- then $acc449374971
164+ let $acc447754809 = foldFunc($acc347754809, $list47754809[3])
165+ if (($size47754809 == 4))
166+ then $acc447754809
169167 else {
170- let $acc549374971 = foldFunc($acc449374971, $list49374971[4])
171- if (($size49374971 == 5))
172- then $acc549374971
168+ let $acc547754809 = foldFunc($acc447754809, $list47754809[4])
169+ if (($size47754809 == 5))
170+ then $acc547754809
173171 else {
174- let $acc649374971 = foldFunc($acc549374971, $list49374971[5])
175- if (($size49374971 == 6))
176- then $acc649374971
172+ let $acc647754809 = foldFunc($acc547754809, $list47754809[5])
173+ if (($size47754809 == 6))
174+ then $acc647754809
177175 else {
178- let $acc749374971 = foldFunc($acc649374971, $list49374971[6])
179- if (($size49374971 == 7))
180- then $acc749374971
176+ let $acc747754809 = foldFunc($acc647754809, $list47754809[6])
177+ if (($size47754809 == 7))
178+ then $acc747754809
181179 else {
182- let $acc849374971 = foldFunc($acc749374971, $list49374971[7])
183- if (($size49374971 == 8))
184- then $acc849374971
180+ let $acc847754809 = foldFunc($acc747754809, $list47754809[7])
181+ if (($size47754809 == 8))
182+ then $acc847754809
185183 else {
186- let $acc949374971 = foldFunc($acc849374971, $list49374971[8])
187- if (($size49374971 == 9))
188- then $acc949374971
184+ let $acc947754809 = foldFunc($acc847754809, $list47754809[8])
185+ if (($size47754809 == 9))
186+ then $acc947754809
189187 else {
190- let $acc1049374971 = foldFunc($acc949374971, $list49374971[9])
191- if (($size49374971 == 10))
192- then $acc1049374971
188+ let $acc1047754809 = foldFunc($acc947754809, $list47754809[9])
189+ if (($size47754809 == 10))
190+ then $acc1047754809
193191 else {
194- let $acc1149374971 = foldFunc($acc1049374971, $list49374971[10])
192+ let $acc1147754809 = foldFunc($acc1047754809, $list47754809[10])
195193 throw("List size exceed 10")
196194 }
197195 }
209207 then true
210208 else !(containsElement(cardsGame, cardName)))
211209 then throw("A classe enviada não existe no game! Por favor verifique suas cartas!")
212- else if (true)
213- then throw(toBase64String(hjk))
214- else if ((payAmount != 10000000))
215- then throw("Cada jogada possui um valor fixo de 0.01 waves.")
216- else if ((0 >= assetBalance(currentKey, undead)))
217- then throw("E necessário ter o token do deck em sua carteira! Para adquirir, realize a compra em Swap Decks.")
218- else if (if ((cardInTheArena == ""))
219- then true
220- else (playerInTheArena == ""))
221- then [StringEntry("playerInTheArena", currentKeyBytes), StringEntry("cardInTheArena", cardName), IntegerEntry("arenaCardScore", currentCardScore), StringEntry(("status_" + cardNameCurrentPlayer), "Used")]
222- else if ((currentCardStatus == "Used"))
223- then throw("Esta carta já foi utilizada! Utilize todas as cartas do deck para esta ser liberada novamente!")
224- else {
225- let winner = if ((currentCardScore > arenaCardScore))
226- then currentKeyBytes
227- else playerInTheArena
228- let winningCard = if ((currentCardScore > arenaCardScore))
229- then cardName
230- else cardInTheArena
231- let pointsRemainingOnWinningCard = if ((currentCardScore > arenaCardScore))
232- then (currentCardScore - arenaCardScore)
233- else (arenaCardScore - currentCardScore)
234- let rewardValue = if ((winner == currentKeyBytes))
235- then ((((payAmount * 19) / 10) / 2) + currentPlayerBalance)
236- else if ((winner == playerInTheArena))
237- then ((((payAmount * 19) / 10) / 2) + arenaPlayerBalance)
238- else throw("Código 010105. Contate o suporte!")
210+ else if ((payAmount != 10000000))
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!")
239235 [StringEntry("playerInTheArena", winner), StringEntry("cardInTheArena", winningCard), IntegerEntry("arenaCardScore", pointsRemainingOnWinningCard), if ((resultVerifyStatusCards == 9))
240- then StringEntry(((("status_" + class) + "_1_") + currentKeyBytes), "")
241- else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9))
242- then StringEntry(((("status_" + class) + "_2_") + currentKeyBytes), "")
243- else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9))
244- then StringEntry(((("status_" + class) + "_3_") + currentKeyBytes), "")
245- else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9))
246- then StringEntry(((("status_" + class) + "_4_") + currentKeyBytes), "")
247- else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9))
248- then StringEntry(((("status_" + class) + "_5_") + currentKeyBytes), "")
249- else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9))
250- then StringEntry(((("status_" + class) + "_6_") + currentKeyBytes), "")
251- else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9))
252- then StringEntry(((("status_" + class) + "_7_") + currentKeyBytes), "")
253- else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9))
254- then StringEntry(((("status_" + class) + "_8_") + currentKeyBytes), "")
255- else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9))
256- then StringEntry(((("status_" + class) + "_9_") + currentKeyBytes), "")
257- else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9))
258- then StringEntry(((("status_" + class) + "_10_") + currentKeyBytes), "")
259- 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")]
260- }
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+ }
261257 }
262258
263259
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44
55
66 @Callable(inv)
77 func play (card,class) = {
88 let transactionId = toBase58String(inv.transactionId)
99 let currentKey = inv.caller
1010 let payAmount = value(inv.payments[0].amount)
1111 let currentKeyBytes = toBase58String(inv.caller.bytes)
1212 let cardName = ((class + "_") + card)
1313 let cardNameCurrentPlayer = ((((class + "_") + card) + "_") + currentKeyBytes)
1414 let undead = base58'6pdMqnpdaD6xEf7gbkgdwKq9UhVsQTFCN1mEDvYiL5NY'
1515 let cardsGame = ["Undead_1", "Undead_2", "Undead_3", "Undead_4", "Undead_5", "Undead_6", "Undead_7", "Undead_8", "Undead_9", "Undead_10"]
1616 let classGame = ["Undead"]
1717 let assetsGame = ["6pdMqnpdaD6xEf7gbkgdwKq9UhVsQTFCN1mEDvYiL5NY"]
18- let hd = ScriptTransfer(Address(base58'3N7wjRDZ2ABrsnoCx4VQX3RP3r3DPkj9eDx'), 1, base58'6pdMqnpdaD6xEf7gbkgdwKq9UhVsQTFCN1mEDvYiL5AS')
19- let hjk = base58'mwsu'
2018 let currentCardStatus = match getString(this, ("status_" + cardNameCurrentPlayer)) {
2119 case t: String =>
2220 t
2321 case _ =>
2422 ""
2523 }
2624 let currentCardScore = match getInteger(this, cardName) {
2725 case t: Int =>
2826 t
2927 case _ =>
3028 0
3129 }
3230 let currentKeyPlayerBalance = ("balance_waves_" + currentKeyBytes)
3331 let currentPlayerBalance = match getInteger(this, currentKeyPlayerBalance) {
3432 case t: Int =>
3533 t
3634 case _ =>
3735 0
3836 }
3937 let playerInTheArena = match getString(this, "playerInTheArena") {
4038 case t: String =>
4139 t
4240 case _ =>
4341 ""
4442 }
4543 let arenaKeyPlayerBalance = ("balance_waves_" + playerInTheArena)
4644 let arenaPlayerBalance = match getInteger(this, arenaKeyPlayerBalance) {
4745 case t: Int =>
4846 t
4947 case _ =>
5048 0
5149 }
5250 let cardInTheArena = match getString(this, "cardInTheArena") {
5351 case t: String =>
5452 t
5553 case _ =>
5654 ""
5755 }
5856 let arenaCardScore = match getInteger(this, "arenaCardScore") {
5957 case t: Int =>
6058 t
6159 case _ =>
6260 0
6361 }
6462 let statusCard1 = if (( match getString(this, ((("status_" + class) + "_1_") + currentKeyBytes)) {
6563 case t: String =>
6664 t
6765 case _ =>
6866 ""
6967 } == "Used"))
7068 then 1
7169 else 0
7270 let statusCard2 = if (( match getString(this, ((("status_" + class) + "_2_") + currentKeyBytes)) {
7371 case t: String =>
7472 t
7573 case _ =>
7674 ""
7775 } == "Used"))
7876 then 1
7977 else 0
8078 let statusCard3 = if (( match getString(this, ((("status_" + class) + "_3_") + currentKeyBytes)) {
8179 case t: String =>
8280 t
8381 case _ =>
8482 ""
8583 } == "Used"))
8684 then 1
8785 else 0
8886 let statusCard4 = if (( match getString(this, ((("status_" + class) + "_4_") + currentKeyBytes)) {
8987 case t: String =>
9088 t
9189 case _ =>
9290 ""
9391 } == "Used"))
9492 then 1
9593 else 0
9694 let statusCard5 = if (( match getString(this, ((("status_" + class) + "_5_") + currentKeyBytes)) {
9795 case t: String =>
9896 t
9997 case _ =>
10098 ""
10199 } == "Used"))
102100 then 1
103101 else 0
104102 let statusCard6 = if (( match getString(this, ((("status_" + class) + "_6_") + currentKeyBytes)) {
105103 case t: String =>
106104 t
107105 case _ =>
108106 ""
109107 } == "Used"))
110108 then 1
111109 else 0
112110 let statusCard7 = if (( match getString(this, ((("status_" + class) + "_7_") + currentKeyBytes)) {
113111 case t: String =>
114112 t
115113 case _ =>
116114 ""
117115 } == "Used"))
118116 then 1
119117 else 0
120118 let statusCard8 = if (( match getString(this, ((("status_" + class) + "_8_") + currentKeyBytes)) {
121119 case t: String =>
122120 t
123121 case _ =>
124122 ""
125123 } == "Used"))
126124 then 1
127125 else 0
128126 let statusCard9 = if (( match getString(this, ((("status_" + class) + "_9_") + currentKeyBytes)) {
129127 case t: String =>
130128 t
131129 case _ =>
132130 ""
133131 } == "Used"))
134132 then 1
135133 else 0
136134 let statusCard10 = if (( match getString(this, ((("status_" + class) + "_10_") + currentKeyBytes)) {
137135 case t: String =>
138136 t
139137 case _ =>
140138 ""
141139 } == "Used"))
142140 then 1
143141 else 0
144142 let statusCards = [statusCard1, statusCard2, statusCard3, statusCard4, statusCard5, statusCard6, statusCard7, statusCard8, statusCard9, statusCard10]
145143 func foldFunc (acc,e) = (acc + e)
146144
147145 let resultVerifyStatusCards = {
148- let $list49374971 = statusCards
149- let $size49374971 = size($list49374971)
150- let $acc049374971 = 0
151- if (($size49374971 == 0))
152- then $acc049374971
146+ let $list47754809 = statusCards
147+ let $size47754809 = size($list47754809)
148+ let $acc047754809 = 0
149+ if (($size47754809 == 0))
150+ then $acc047754809
153151 else {
154- let $acc149374971 = foldFunc($acc049374971, $list49374971[0])
155- if (($size49374971 == 1))
156- then $acc149374971
152+ let $acc147754809 = foldFunc($acc047754809, $list47754809[0])
153+ if (($size47754809 == 1))
154+ then $acc147754809
157155 else {
158- let $acc249374971 = foldFunc($acc149374971, $list49374971[1])
159- if (($size49374971 == 2))
160- then $acc249374971
156+ let $acc247754809 = foldFunc($acc147754809, $list47754809[1])
157+ if (($size47754809 == 2))
158+ then $acc247754809
161159 else {
162- let $acc349374971 = foldFunc($acc249374971, $list49374971[2])
163- if (($size49374971 == 3))
164- then $acc349374971
160+ let $acc347754809 = foldFunc($acc247754809, $list47754809[2])
161+ if (($size47754809 == 3))
162+ then $acc347754809
165163 else {
166- let $acc449374971 = foldFunc($acc349374971, $list49374971[3])
167- if (($size49374971 == 4))
168- then $acc449374971
164+ let $acc447754809 = foldFunc($acc347754809, $list47754809[3])
165+ if (($size47754809 == 4))
166+ then $acc447754809
169167 else {
170- let $acc549374971 = foldFunc($acc449374971, $list49374971[4])
171- if (($size49374971 == 5))
172- then $acc549374971
168+ let $acc547754809 = foldFunc($acc447754809, $list47754809[4])
169+ if (($size47754809 == 5))
170+ then $acc547754809
173171 else {
174- let $acc649374971 = foldFunc($acc549374971, $list49374971[5])
175- if (($size49374971 == 6))
176- then $acc649374971
172+ let $acc647754809 = foldFunc($acc547754809, $list47754809[5])
173+ if (($size47754809 == 6))
174+ then $acc647754809
177175 else {
178- let $acc749374971 = foldFunc($acc649374971, $list49374971[6])
179- if (($size49374971 == 7))
180- then $acc749374971
176+ let $acc747754809 = foldFunc($acc647754809, $list47754809[6])
177+ if (($size47754809 == 7))
178+ then $acc747754809
181179 else {
182- let $acc849374971 = foldFunc($acc749374971, $list49374971[7])
183- if (($size49374971 == 8))
184- then $acc849374971
180+ let $acc847754809 = foldFunc($acc747754809, $list47754809[7])
181+ if (($size47754809 == 8))
182+ then $acc847754809
185183 else {
186- let $acc949374971 = foldFunc($acc849374971, $list49374971[8])
187- if (($size49374971 == 9))
188- then $acc949374971
184+ let $acc947754809 = foldFunc($acc847754809, $list47754809[8])
185+ if (($size47754809 == 9))
186+ then $acc947754809
189187 else {
190- let $acc1049374971 = foldFunc($acc949374971, $list49374971[9])
191- if (($size49374971 == 10))
192- then $acc1049374971
188+ let $acc1047754809 = foldFunc($acc947754809, $list47754809[9])
189+ if (($size47754809 == 10))
190+ then $acc1047754809
193191 else {
194- let $acc1149374971 = foldFunc($acc1049374971, $list49374971[10])
192+ let $acc1147754809 = foldFunc($acc1047754809, $list47754809[10])
195193 throw("List size exceed 10")
196194 }
197195 }
198196 }
199197 }
200198 }
201199 }
202200 }
203201 }
204202 }
205203 }
206204 }
207205 }
208206 if (if (!(containsElement(classGame, class)))
209207 then true
210208 else !(containsElement(cardsGame, cardName)))
211209 then throw("A classe enviada não existe no game! Por favor verifique suas cartas!")
212- else if (true)
213- then throw(toBase64String(hjk))
214- else if ((payAmount != 10000000))
215- then throw("Cada jogada possui um valor fixo de 0.01 waves.")
216- else if ((0 >= assetBalance(currentKey, undead)))
217- then throw("E necessário ter o token do deck em sua carteira! Para adquirir, realize a compra em Swap Decks.")
218- else if (if ((cardInTheArena == ""))
219- then true
220- else (playerInTheArena == ""))
221- then [StringEntry("playerInTheArena", currentKeyBytes), StringEntry("cardInTheArena", cardName), IntegerEntry("arenaCardScore", currentCardScore), StringEntry(("status_" + cardNameCurrentPlayer), "Used")]
222- else if ((currentCardStatus == "Used"))
223- then throw("Esta carta já foi utilizada! Utilize todas as cartas do deck para esta ser liberada novamente!")
224- else {
225- let winner = if ((currentCardScore > arenaCardScore))
226- then currentKeyBytes
227- else playerInTheArena
228- let winningCard = if ((currentCardScore > arenaCardScore))
229- then cardName
230- else cardInTheArena
231- let pointsRemainingOnWinningCard = if ((currentCardScore > arenaCardScore))
232- then (currentCardScore - arenaCardScore)
233- else (arenaCardScore - currentCardScore)
234- let rewardValue = if ((winner == currentKeyBytes))
235- then ((((payAmount * 19) / 10) / 2) + currentPlayerBalance)
236- else if ((winner == playerInTheArena))
237- then ((((payAmount * 19) / 10) / 2) + arenaPlayerBalance)
238- else throw("Código 010105. Contate o suporte!")
210+ else if ((payAmount != 10000000))
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!")
239235 [StringEntry("playerInTheArena", winner), StringEntry("cardInTheArena", winningCard), IntegerEntry("arenaCardScore", pointsRemainingOnWinningCard), if ((resultVerifyStatusCards == 9))
240- then StringEntry(((("status_" + class) + "_1_") + currentKeyBytes), "")
241- else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9))
242- then StringEntry(((("status_" + class) + "_2_") + currentKeyBytes), "")
243- else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9))
244- then StringEntry(((("status_" + class) + "_3_") + currentKeyBytes), "")
245- else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9))
246- then StringEntry(((("status_" + class) + "_4_") + currentKeyBytes), "")
247- else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9))
248- then StringEntry(((("status_" + class) + "_5_") + currentKeyBytes), "")
249- else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9))
250- then StringEntry(((("status_" + class) + "_6_") + currentKeyBytes), "")
251- else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9))
252- then StringEntry(((("status_" + class) + "_7_") + currentKeyBytes), "")
253- else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9))
254- then StringEntry(((("status_" + class) + "_8_") + currentKeyBytes), "")
255- else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9))
256- then StringEntry(((("status_" + class) + "_9_") + currentKeyBytes), "")
257- else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9))
258- then StringEntry(((("status_" + class) + "_10_") + currentKeyBytes), "")
259- 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")]
260- }
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+ }
261257 }
262258
263259

github/deemru/w8io/169f3d6 
124.85 ms