tx · 5AyrVjmRLNTsLZSfNq5H95J2EtyctqAEzz8boKqNbNme 3NC3ZeZYDpDR72ngL6CoC19ygSD9uGBW3fX: -0.01000000 Waves 2023.05.01 00:04 [2557796] smart account 3NC3ZeZYDpDR72ngL6CoC19ygSD9uGBW3fX > SELF 0.00000000 Waves
{ "type": 13, "id": "5AyrVjmRLNTsLZSfNq5H95J2EtyctqAEzz8boKqNbNme", "fee": 1000000, "feeAssetId": null, "timestamp": 1682888790192, "version": 2, "chainId": 84, "sender": "3NC3ZeZYDpDR72ngL6CoC19ygSD9uGBW3fX", "senderPublicKey": "8jH62ceUHZbFsEBSPohAjv3Rzc8mw3QhZaUKhGHngY2J", "proofs": [ "2eRjWP1C3HQwsnLjFQTVEyqq1PxnY4R8wHdtiN26GT3gCkrTPaK52fETctGNdt6eYpkNf5QDu6DoGUuCfnrBDCjT" ], "script": "base64:BgIOCAISABIAEgASBAoCEQEDAA50b3RhbE1hdGNoc0tleQIOdG90YWxNYXRjaHNLZXkBEHRyeUdldEludGVnZXJFeHQCB2FkZHJlc3MDa2V5BAckbWF0Y2gwCQCaCAIFB2FkZHJlc3MFA2tleQMJAAECBQckbWF0Y2gwAgNJbnQEAWEFByRtYXRjaDAFAWEAAAEJdHJ5R2V0SW50AQNrZXkJARB0cnlHZXRJbnRlZ2VyRXh0AgUEdGhpcwUDa2V5BAFpAQdteVRva2VuAAkAlAoCCQDMCAIJAMIIBQkArAICAgZUX3RjY18JAK8CAgkA2AQBCAgFAWkGY2FsbGVyBWJ5dGVzAAYCAACgjQYAAgYFA25pbAUEdW5pdAFpAQpjbGFpbVRva2VuAAQJcmVjaXBpZW50CAUBaQZjYWxsZXIEBXRva2VuCQDZBAECLEJUUGlDZUFFZDRFS2tDeXlSVGpETnczZnltRDdQdm9yNlBRQXlWUE4zMlpTCQDMCAIJAQ5TY3JpcHRUcmFuc2ZlcgMFCXJlY2lwaWVudADIAQUFdG9rZW4FA25pbAFpAQxkZXBvc2l0VG9rZW4ABAlyZWNpcGllbnQJANgEAQgIBQFpBmNhbGxlcgVieXRlcwQFdG9rZW4JANkEAQIsQlRQaUNlQUVkNEVLa0N5eVJUakROdzNmeW1EN1B2b3I2UFFBeVZQTjMyWlMJAMwIAgkBC1N0cmluZ0VudHJ5AgUJcmVjaXBpZW50AgMxMDAFA25pbAFpARF2ZXJpZmljYXJWZW5jZWRvcgIIc29sdWNvZXMJbnVtUGxheWVyBAlyZWNpcGllbnQIBQFpBmNhbGxlcgQFdG9rZW4JANkEAQIsQlRQaUNlQUVkNEVLa0N5eVJUakROdzNmeW1EN1B2b3I2UFFBeVZQTjMyWlMDCQEPY29udGFpbnNFbGVtZW50AgUIc29sdWNvZXMJAGgCAAMJAGQCBQludW1QbGF5ZXIAAQQDcXRkCQBkAgkBCXRyeUdldEludAEFDnRvdGFsTWF0Y2hzS2V5AAEEDWFtb3VudE1hdGNoZXMJAKwCAgIIUGFydGlkYS0JAKQDAQUDcXRkCQDMCAIJAQxJbnRlZ2VyRW50cnkCBQ50b3RhbE1hdGNoc0tleQUDcXRkCQDMCAIJAQtTdHJpbmdFbnRyeQIFDWFtb3VudE1hdGNoZXMCEEpvZ2Fkb3IgY2FydGVpcmEJAMwIAgkBDlNjcmlwdFRyYW5zZmVyAwUJcmVjaXBpZW50AJADBQV0b2tlbgUDbmlsAwMJAQ9jb250YWluc0VsZW1lbnQCBQhzb2x1Y29lcwADBgkBD2NvbnRhaW5zRWxlbWVudAIFCHNvbHVjb2VzAAYJAMwIAgkBC1N0cmluZ0VudHJ5AgIHSm9nYWRvcgIGUGVyZGV1BQNuaWwJAMwIAgkBC1N0cmluZ0VudHJ5AgIFQW1ib3MCBkVtcGF0ZQUDbmlsAPOv9AA=", "height": 2557796, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 8vroTRaTeoUx6g8r6E17Lzb9GAPtNzXWT49xDDSVxmgV Next: 9tvqPyhuvUsrztQEqQKzAXJLPv99BjTg64XzoS1yipVb Diff:
Old | New | Differences | |
---|---|---|---|
48 | 48 | then { | |
49 | 49 | let m = (g(a) + 1) | |
50 | 50 | let n = ("Partida-" + toString(m)) | |
51 | - | [StringEntry(n, "Jogador carteira"), ScriptTransfer(i, 400, j)] | |
51 | + | [IntegerEntry(a, m), StringEntry(n, "Jogador carteira"), ScriptTransfer(i, 400, j)] | |
52 | 52 | } | |
53 | 53 | else if (if (containsElement(k, 3)) | |
54 | 54 | then true |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "totalMatchsKey" | |
5 | 5 | ||
6 | 6 | func b (c,d) = { | |
7 | 7 | let e = getInteger(c, d) | |
8 | 8 | if ($isInstanceOf(e, "Int")) | |
9 | 9 | then { | |
10 | 10 | let f = e | |
11 | 11 | f | |
12 | 12 | } | |
13 | 13 | else 0 | |
14 | 14 | } | |
15 | 15 | ||
16 | 16 | ||
17 | 17 | func g (d) = b(this, d) | |
18 | 18 | ||
19 | 19 | ||
20 | 20 | @Callable(h) | |
21 | 21 | func myToken () = $Tuple2([Issue(("T_tcc_" + take(toBase58String(h.caller.bytes), 6)), "", 100000, 2, true)], unit) | |
22 | 22 | ||
23 | 23 | ||
24 | 24 | ||
25 | 25 | @Callable(h) | |
26 | 26 | func claimToken () = { | |
27 | 27 | let i = h.caller | |
28 | 28 | let j = fromBase58String("BTPiCeAEd4EKkCyyRTjDNw3fymD7Pvor6PQAyVPN32ZS") | |
29 | 29 | [ScriptTransfer(i, 200, j)] | |
30 | 30 | } | |
31 | 31 | ||
32 | 32 | ||
33 | 33 | ||
34 | 34 | @Callable(h) | |
35 | 35 | func depositToken () = { | |
36 | 36 | let i = toBase58String(h.caller.bytes) | |
37 | 37 | let j = fromBase58String("BTPiCeAEd4EKkCyyRTjDNw3fymD7Pvor6PQAyVPN32ZS") | |
38 | 38 | [StringEntry(i, "100")] | |
39 | 39 | } | |
40 | 40 | ||
41 | 41 | ||
42 | 42 | ||
43 | 43 | @Callable(h) | |
44 | 44 | func verificarVencedor (k,l) = { | |
45 | 45 | let i = h.caller | |
46 | 46 | let j = fromBase58String("BTPiCeAEd4EKkCyyRTjDNw3fymD7Pvor6PQAyVPN32ZS") | |
47 | 47 | if (containsElement(k, (3 * (l + 1)))) | |
48 | 48 | then { | |
49 | 49 | let m = (g(a) + 1) | |
50 | 50 | let n = ("Partida-" + toString(m)) | |
51 | - | [StringEntry(n, "Jogador carteira"), ScriptTransfer(i, 400, j)] | |
51 | + | [IntegerEntry(a, m), StringEntry(n, "Jogador carteira"), ScriptTransfer(i, 400, j)] | |
52 | 52 | } | |
53 | 53 | else if (if (containsElement(k, 3)) | |
54 | 54 | then true | |
55 | 55 | else containsElement(k, 6)) | |
56 | 56 | then [StringEntry("Jogador", "Perdeu")] | |
57 | 57 | else [StringEntry("Ambos", "Empate")] | |
58 | 58 | } | |
59 | 59 | ||
60 | 60 |
github/deemru/w8io/026f985 34.42 ms ◑