tx · DgcrGsUYbEEYSgXMKVCX7e8VgHade4fmFmkizkwcTFsW

3NC3ZeZYDpDR72ngL6CoC19ygSD9uGBW3fX:  -0.01000000 Waves

2023.04.28 01:15 [2553563] smart account 3NC3ZeZYDpDR72ngL6CoC19ygSD9uGBW3fX > SELF 0.00000000 Waves

{ "type": 13, "id": "DgcrGsUYbEEYSgXMKVCX7e8VgHade4fmFmkizkwcTFsW", "fee": 1000000, "feeAssetId": null, "timestamp": 1682628701357, "version": 2, "chainId": 84, "sender": "3NC3ZeZYDpDR72ngL6CoC19ygSD9uGBW3fX", "senderPublicKey": "8jH62ceUHZbFsEBSPohAjv3Rzc8mw3QhZaUKhGHngY2J", "proofs": [ "54K9N26C8YWGxDFHP3pb7yHqrCqp46zNBYPGK5CkEwjAsR8hmvJeQ7fnjoDYT8VjuAzzhY8Ka3Kq9MbAnXg2vTvX" ], "script": "base64:BgIOCAISABIAEgASBAoCEQEDAA50b3RhbE1hdGNoc0tleQIOdG90YWxNYXRjaHNLZXkBEHRyeUdldEludGVnZXJFeHQCB2FkZHJlc3MDa2V5BAckbWF0Y2gwCQCaCAIFB2FkZHJlc3MFA2tleQMJAAECBQckbWF0Y2gwAgNJbnQEAWEFByRtYXRjaDAFAWEAAAEJdHJ5R2V0SW50AQNrZXkJARB0cnlHZXRJbnRlZ2VyRXh0AgUEdGhpcwUDa2V5BAFpAQdteVRva2VuAAkAlAoCCQDMCAIJAMIIBQkArAICAgZUX3RjY18JAK8CAgkA2AQBCAgFAWkGY2FsbGVyBWJ5dGVzAAYCAACgjQYAAgYFA25pbAUEdW5pdAFpAQpjbGFpbVRva2VuAAQJcmVjaXBpZW50CAUBaQZjYWxsZXIEBXRva2VuCQDZBAECLEJUUGlDZUFFZDRFS2tDeXlSVGpETnczZnltRDdQdm9yNlBRQXlWUE4zMlpTCQDMCAIJAQ5TY3JpcHRUcmFuc2ZlcgMFCXJlY2lwaWVudADIAQUFdG9rZW4FA25pbAFpAQxkZXBvc2l0VG9rZW4ABAlyZWNpcGllbnQJANgEAQgIBQFpBmNhbGxlcgVieXRlcwQFdG9rZW4JANkEAQIsQlRQaUNlQUVkNEVLa0N5eVJUakROdzNmeW1EN1B2b3I2UFFBeVZQTjMyWlMJAMwIAgkBC1N0cmluZ0VudHJ5AgUJcmVjaXBpZW50AgMxMDAFA25pbAFpARF2ZXJpZmljYXJWZW5jZWRvcgIIc29sdWNvZXMJbnVtUGxheWVyBAlyZWNpcGllbnQIBQFpBmNhbGxlcgQFdG9rZW4JANkEAQIsQlRQaUNlQUVkNEVLa0N5eVJUakROdzNmeW1EN1B2b3I2UFFBeVZQTjMyWlMDCQEPY29udGFpbnNFbGVtZW50AgUIc29sdWNvZXMJAGgCAAMJAGQCBQludW1QbGF5ZXIAAQQNYW1vdW50TWF0Y2hlcwkAZAIJAQl0cnlHZXRJbnQBBQ50b3RhbE1hdGNoc0tleQABCQDMCAIJAQxJbnRlZ2VyRW50cnkCBQ50b3RhbE1hdGNoc0tleQUNYW1vdW50TWF0Y2hlcwkAzAgCCQELU3RyaW5nRW50cnkCAgdKb2dhZG9yAgZHYW5ob3UJAMwIAgkBDlNjcmlwdFRyYW5zZmVyAwUJcmVjaXBpZW50AJADBQV0b2tlbgUDbmlsAwMJAQ9jb250YWluc0VsZW1lbnQCBQhzb2x1Y29lcwADBgkBD2NvbnRhaW5zRWxlbWVudAIFCHNvbHVjb2VzAAYJAMwIAgkBC1N0cmluZ0VudHJ5AgIHSm9nYWRvcgIGUGVyZGV1BQNuaWwJAMwIAgkBC1N0cmluZ0VudHJ5AgIFQW1ib3MCBkVtcGF0ZQUDbmlsAG6eVI4=", "height": 2553563, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 7heRCqMrNb3Lbu9Xh22wu2TEvLTNt73gT5Jrqbo3of8n Next: 33nT7cNY3QPrjoNoYE6tKzuxnx5ebCc2DqGqKtjNDpt5 Diff:
OldNewDifferences
4444 if (containsElement(solucoes, (3 * (numPlayer + 1))))
4545 then {
4646 let amountMatches = (tryGetInt(totalMatchsKey) + 1)
47-[IntegerEntry("Partida N", amountMatches), StringEntry("Jogador", "Ganhou"), ScriptTransfer(recipient, 400, token)]
47+[IntegerEntry(totalMatchsKey, amountMatches), StringEntry("Jogador", "Ganhou"), ScriptTransfer(recipient, 400, token)]
4848 }
4949 else if (if (containsElement(solucoes, 3))
5050 then true
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let totalMatchsKey = "totalMatchsKey"
55
66 func tryGetIntegerExt (address,key) = match getInteger(address, key) {
77 case a: Int =>
88 a
99 case _ =>
1010 0
1111 }
1212
1313
1414 func tryGetInt (key) = tryGetIntegerExt(this, key)
1515
1616
1717 @Callable(i)
1818 func myToken () = $Tuple2([Issue(("T_tcc_" + take(toBase58String(i.caller.bytes), 6)), "", 100000, 2, true)], unit)
1919
2020
2121
2222 @Callable(i)
2323 func claimToken () = {
2424 let recipient = i.caller
2525 let token = fromBase58String("BTPiCeAEd4EKkCyyRTjDNw3fymD7Pvor6PQAyVPN32ZS")
2626 [ScriptTransfer(recipient, 200, token)]
2727 }
2828
2929
3030
3131 @Callable(i)
3232 func depositToken () = {
3333 let recipient = toBase58String(i.caller.bytes)
3434 let token = fromBase58String("BTPiCeAEd4EKkCyyRTjDNw3fymD7Pvor6PQAyVPN32ZS")
3535 [StringEntry(recipient, "100")]
3636 }
3737
3838
3939
4040 @Callable(i)
4141 func verificarVencedor (solucoes,numPlayer) = {
4242 let recipient = i.caller
4343 let token = fromBase58String("BTPiCeAEd4EKkCyyRTjDNw3fymD7Pvor6PQAyVPN32ZS")
4444 if (containsElement(solucoes, (3 * (numPlayer + 1))))
4545 then {
4646 let amountMatches = (tryGetInt(totalMatchsKey) + 1)
47-[IntegerEntry("Partida N", amountMatches), StringEntry("Jogador", "Ganhou"), ScriptTransfer(recipient, 400, token)]
47+[IntegerEntry(totalMatchsKey, amountMatches), StringEntry("Jogador", "Ganhou"), ScriptTransfer(recipient, 400, token)]
4848 }
4949 else if (if (containsElement(solucoes, 3))
5050 then true
5151 else containsElement(solucoes, 6))
5252 then [StringEntry("Jogador", "Perdeu")]
5353 else [StringEntry("Ambos", "Empate")]
5454 }
5555
5656

github/deemru/w8io/026f985 
27.66 ms