tx · HJJiaqQdhQy9DsyRkF4uBp8gVthdgMtNH9SFRbY32pjA 3NC3ZeZYDpDR72ngL6CoC19ygSD9uGBW3fX: -0.01000000 Waves 2023.06.02 00:56 [2604175] smart account 3NC3ZeZYDpDR72ngL6CoC19ygSD9uGBW3fX > SELF 0.00000000 Waves
{ "type": 13, "id": "HJJiaqQdhQy9DsyRkF4uBp8gVthdgMtNH9SFRbY32pjA", "fee": 1000000, "feeAssetId": null, "timestamp": 1685656674579, "version": 2, "chainId": 84, "sender": "3NC3ZeZYDpDR72ngL6CoC19ygSD9uGBW3fX", "senderPublicKey": "8jH62ceUHZbFsEBSPohAjv3Rzc8mw3QhZaUKhGHngY2J", "proofs": [ "2g4fLpUc631r4V173P5ddWNibvT9adokoNA4HsooW7QvfE4vcUCk5uH5nmbEdSqQ71Xxu2VVYGNAqtxX13Ajfzg3" ], "script": "base64:BgIQCAISABIAEgASBgoEEQEICAMADnRvdGFsTWF0Y2hzS2V5Ag50b3RhbE1hdGNoc0tleQEQdHJ5R2V0SW50ZWdlckV4dAIHYWRkcmVzcwNrZXkEByRtYXRjaDAJAJoIAgUHYWRkcmVzcwUDa2V5AwkAAQIFByRtYXRjaDACA0ludAQBYQUHJG1hdGNoMAUBYQAAAQl0cnlHZXRJbnQBA2tleQkBEHRyeUdldEludGVnZXJFeHQCBQR0aGlzBQNrZXkEAWkBB215VG9rZW4ACQCUCgIJAMwIAgkAwggFCQCsAgICBlRfdGNjXwkArwICCQDYBAEICAUBaQZjYWxsZXIFYnl0ZXMABgIAAKCNBgACBgUDbmlsBQR1bml0AWkBCmNsYWltVG9rZW4ABAlyZWNpcGllbnQIBQFpBmNhbGxlcgQFdG9rZW4JANkEAQIsQlRQaUNlQUVkNEVLa0N5eVJUakROdzNmeW1EN1B2b3I2UFFBeVZQTjMyWlMJAMwIAgkBDlNjcmlwdFRyYW5zZmVyAwUJcmVjaXBpZW50AOgHBQV0b2tlbgUDbmlsAWkBDGRlcG9zaXRUb2tlbgAECXJ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aWwA3Q7xkA==", "height": 2604175, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 9tvqPyhuvUsrztQEqQKzAXJLPv99BjTg64XzoS1yipVb Next: GuehQb4KtHnTumtjEpqVsN2hcT5zSywkU2aCZiCwoB2H Diff:
Old | New | Differences | |
---|---|---|---|
26 | 26 | func claimToken () = { | |
27 | 27 | let i = h.caller | |
28 | 28 | let j = fromBase58String("BTPiCeAEd4EKkCyyRTjDNw3fymD7Pvor6PQAyVPN32ZS") | |
29 | - | [ScriptTransfer(i, | |
29 | + | [ScriptTransfer(i, 1000, j)] | |
30 | 30 | } | |
31 | 31 | ||
32 | 32 |
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 | - | [ScriptTransfer(i, | |
29 | + | [ScriptTransfer(i, 1000, 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,m,n) = { | |
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 o = (g(a) + 1) | |
50 | 50 | let p = ("Partida-" + toString(o)) | |
51 | 51 | let q = (((((("Vencedor: " + toBase58String(h.caller.bytes)) + " ; ") + "Oponente: ") + m) + "Tabuleiro: ") + n) | |
52 | 52 | [IntegerEntry(a, o), StringEntry(p, q), ScriptTransfer(i, 400, j)] | |
53 | 53 | } | |
54 | 54 | else if (if (containsElement(k, 3)) | |
55 | 55 | then true | |
56 | 56 | else containsElement(k, 6)) | |
57 | 57 | then [StringEntry("Jogador", "Perdeu")] | |
58 | 58 | else [StringEntry("Ambos", "Empate")] | |
59 | 59 | } | |
60 | 60 | ||
61 | 61 |
github/deemru/w8io/169f3d6 36.39 ms ◑