tx · 2CKNAe4kSfH1T7PGMQjEcdmCe65yYQaBfrGJcUfH7G6y 3NC3ZeZYDpDR72ngL6CoC19ygSD9uGBW3fX: -0.01000000 Waves 2023.04.27 02:22 [2552166] smart account 3NC3ZeZYDpDR72ngL6CoC19ygSD9uGBW3fX > SELF 0.00000000 Waves
{ "type": 13, "id": "2CKNAe4kSfH1T7PGMQjEcdmCe65yYQaBfrGJcUfH7G6y", "fee": 1000000, "feeAssetId": null, "timestamp": 1682551344604, "version": 2, "chainId": 84, "sender": "3NC3ZeZYDpDR72ngL6CoC19ygSD9uGBW3fX", "senderPublicKey": "8jH62ceUHZbFsEBSPohAjv3Rzc8mw3QhZaUKhGHngY2J", "proofs": [ "5mxnm2EAkzobQ5yQr6fQiQhwt6DC5riRNSvVZ976s2X2YastAuxKKTk1JFKxrLwxpwxArGMKLD86fSn1v45nk5tW" ], "script": "base64:BgIOCAISABIAEgASBAoCEQEABAFpAQdteVRva2VuAAkAlAoCCQDMCAIJAMIIBQkArAICAgZUX3RjY18JAK8CAgkA2AQBCAgFAWkGY2FsbGVyBWJ5dGVzAAYCAACgjQYAAgYFA25pbAUEdW5pdAFpAQpjbGFpbVRva2VuAAQJcmVjaXBpZW50CAUBaQZjYWxsZXIEBXRva2VuCQDZBAECLEJUUGlDZUFFZDRFS2tDeXlSVGpETnczZnltRDdQdm9yNlBRQXlWUE4zMlpTCQDMCAIJAQ5TY3JpcHRUcmFuc2ZlcgMFCXJlY2lwaWVudADIAQUFdG9rZW4FA25pbAFpAQxkZXBvc2l0VG9rZW4ABAlyZWNpcGllbnQJANgEAQgIBQFpBmNhbGxlcgVieXRlcwQFdG9rZW4JANkEAQIsQlRQaUNlQUVkNEVLa0N5eVJUakROdzNmeW1EN1B2b3I2UFFBeVZQTjMyWlMJAMwIAgkBC1N0cmluZ0VudHJ5AgUJcmVjaXBpZW50AgMxMDAFA25pbAFpARF2ZXJpZmljYXJWZW5jZWRvcgIIc29sdWNvZXMJbnVtUGxheWVyBAlyZWNpcGllbnQIBQFpBmNhbGxlcgQFdG9rZW4JANkEAQIsQlRQaUNlQUVkNEVLa0N5eVJUakROdzNmeW1EN1B2b3I2UFFBeVZQTjMyWlMDCQEPY29udGFpbnNFbGVtZW50AgUIc29sdWNvZXMJAGgCAAMJAGQCBQludW1QbGF5ZXIAAQkAzAgCCQELU3RyaW5nRW50cnkCAgdKb2dhZG9yAgZHYW5ob3UJAMwIAgkBDlNjcmlwdFRyYW5zZmVyAwUJcmVjaXBpZW50AMgBBQV0b2tlbgUDbmlsAwMJAQ9jb250YWluc0VsZW1lbnQCBQhzb2x1Y29lcwADBgkBD2NvbnRhaW5zRWxlbWVudAIFCHNvbHVjb2VzAAYJAMwIAgkBC1N0cmluZ0VudHJ5AgIHSm9nYWRvcgIGUGVyZGV1BQNuaWwJAMwIAgkBC1N0cmluZ0VudHJ5AgIFQW1ib3MCBkVtcGF0ZQUDbmlsALIKTCk=", "height": 2552166, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: E4vmPtm2cn5MuFoNZjZRqoiQuRSAbEug5hD2Pt2gnyEL Next: 4TDsf9kDbuMBGTegnjQnTm3GChj5vgX8r9JiTmHffSdb Diff:
Old | New | Differences | |
---|---|---|---|
27 | 27 | ||
28 | 28 | ||
29 | 29 | @Callable(a) | |
30 | - | func verificarVencedor (d,e) = if (containsElement(d, (3 * (e + 1)))) | |
31 | - | then [StringEntry("Jogador", "Ganhou")] | |
32 | - | else if (if (containsElement(d, 3)) | |
33 | - | then true | |
34 | - | else containsElement(d, 6)) | |
35 | - | then [StringEntry("Jogador", "Perdeu")] | |
36 | - | else [StringEntry("Ambos", "Empate")] | |
30 | + | func verificarVencedor (d,e) = { | |
31 | + | let b = a.caller | |
32 | + | let c = fromBase58String("BTPiCeAEd4EKkCyyRTjDNw3fymD7Pvor6PQAyVPN32ZS") | |
33 | + | if (containsElement(d, (3 * (e + 1)))) | |
34 | + | then [StringEntry("Jogador", "Ganhou"), ScriptTransfer(b, 200, c)] | |
35 | + | else if (if (containsElement(d, 3)) | |
36 | + | then true | |
37 | + | else containsElement(d, 6)) | |
38 | + | then [StringEntry("Jogador", "Perdeu")] | |
39 | + | else [StringEntry("Ambos", "Empate")] | |
40 | + | } | |
37 | 41 | ||
38 | 42 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | ||
5 | 5 | ||
6 | 6 | @Callable(a) | |
7 | 7 | func myToken () = $Tuple2([Issue(("T_tcc_" + take(toBase58String(a.caller.bytes), 6)), "", 100000, 2, true)], unit) | |
8 | 8 | ||
9 | 9 | ||
10 | 10 | ||
11 | 11 | @Callable(a) | |
12 | 12 | func claimToken () = { | |
13 | 13 | let b = a.caller | |
14 | 14 | let c = fromBase58String("BTPiCeAEd4EKkCyyRTjDNw3fymD7Pvor6PQAyVPN32ZS") | |
15 | 15 | [ScriptTransfer(b, 200, c)] | |
16 | 16 | } | |
17 | 17 | ||
18 | 18 | ||
19 | 19 | ||
20 | 20 | @Callable(a) | |
21 | 21 | func depositToken () = { | |
22 | 22 | let b = toBase58String(a.caller.bytes) | |
23 | 23 | let c = fromBase58String("BTPiCeAEd4EKkCyyRTjDNw3fymD7Pvor6PQAyVPN32ZS") | |
24 | 24 | [StringEntry(b, "100")] | |
25 | 25 | } | |
26 | 26 | ||
27 | 27 | ||
28 | 28 | ||
29 | 29 | @Callable(a) | |
30 | - | func verificarVencedor (d,e) = if (containsElement(d, (3 * (e + 1)))) | |
31 | - | then [StringEntry("Jogador", "Ganhou")] | |
32 | - | else if (if (containsElement(d, 3)) | |
33 | - | then true | |
34 | - | else containsElement(d, 6)) | |
35 | - | then [StringEntry("Jogador", "Perdeu")] | |
36 | - | else [StringEntry("Ambos", "Empate")] | |
30 | + | func verificarVencedor (d,e) = { | |
31 | + | let b = a.caller | |
32 | + | let c = fromBase58String("BTPiCeAEd4EKkCyyRTjDNw3fymD7Pvor6PQAyVPN32ZS") | |
33 | + | if (containsElement(d, (3 * (e + 1)))) | |
34 | + | then [StringEntry("Jogador", "Ganhou"), ScriptTransfer(b, 200, c)] | |
35 | + | else if (if (containsElement(d, 3)) | |
36 | + | then true | |
37 | + | else containsElement(d, 6)) | |
38 | + | then [StringEntry("Jogador", "Perdeu")] | |
39 | + | else [StringEntry("Ambos", "Empate")] | |
40 | + | } | |
37 | 41 | ||
38 | 42 |
github/deemru/w8io/026f985 37.90 ms ◑