tx · 9BZWHiXT14SLxtqS2GK4LBhLxKFN7k2Fthh23H9rzRzY

3NC3ZeZYDpDR72ngL6CoC19ygSD9uGBW3fX:  -0.01000000 Waves

2023.04.26 01:55 [2550695] smart account 3NC3ZeZYDpDR72ngL6CoC19ygSD9uGBW3fX > SELF 0.00000000 Waves

{ "type": 13, "id": "9BZWHiXT14SLxtqS2GK4LBhLxKFN7k2Fthh23H9rzRzY", "fee": 1000000, "feeAssetId": null, "timestamp": 1682463362583, "version": 2, "chainId": 84, "sender": "3NC3ZeZYDpDR72ngL6CoC19ygSD9uGBW3fX", "senderPublicKey": "8jH62ceUHZbFsEBSPohAjv3Rzc8mw3QhZaUKhGHngY2J", "proofs": [ "3uadMBQjBdW4K9zxAtkaB12SkvhbTbJKTcL9kTShbr4J5yYZnFtrCzWb8K5jXcQD38ENHzktTaGQvDwqDfkd2Uuk" ], "script": "base64:BgIOCAISABIAEgASBAoCEQEABAFpAQdteVRva2VuAAkAlAoCCQDMCAIJAMIIBQkArAICAgZUX3RjY18JAK8CAgkA2AQBCAgFAWkGY2FsbGVyBWJ5dGVzAAYCAACgjQYAAgYFA25pbAUEdW5pdAFpAQpjbGFpbVRva2VuAAQJcmVjaXBpZW50CAUBaQZjYWxsZXIEBXRva2VuCQDZBAECLEJUUGlDZUFFZDRFS2tDeXlSVGpETnczZnltRDdQdm9yNlBRQXlWUE4zMlpTCQDMCAIJAQ5TY3JpcHRUcmFuc2ZlcgMFCXJlY2lwaWVudADIAQUFdG9rZW4FA25pbAFpAQxkZXBvc2l0VG9rZW4ABAlyZWNpcGllbnQJANgEAQgIBQFpBmNhbGxlcgVieXRlcwQFdG9rZW4JANkEAQIsQlRQaUNlQUVkNEVLa0N5eVJUakROdzNmeW1EN1B2b3I2UFFBeVZQTjMyWlMJAMwIAgkBC1N0cmluZ0VudHJ5AgUJcmVjaXBpZW50AgMxMDAFA25pbAFpARF2ZXJpZmljYXJWZW5jZWRvcgIIc29sdWNvZXMJbnVtUGxheWVyAwkBD2NvbnRhaW5zRWxlbWVudAIFCHNvbHVjb2VzCQBoAgADCQBkAgUJbnVtUGxheWVyAAEJAMwIAgkBC1N0cmluZ0VudHJ5AgIHSm9nYWRvcgIGR2FuaG91BQNuaWwDAwkBD2NvbnRhaW5zRWxlbWVudAIFCHNvbHVjb2VzAAMJAQ9jb250YWluc0VsZW1lbnQCBQhzb2x1Y29lcwAGBwkAzAgCCQELU3RyaW5nRW50cnkCAgdKb2dhZG9yAgZQZXJkZXUFA25pbAkAzAgCCQELU3RyaW5nRW50cnkCAgVBbWJvcwIGRW1wYXRlBQNuaWwA34lGoA==", "height": 2550695, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: FRR3nWffk4b2BKXcrfbU1vjw6Mf93A18KUaC67X7Dmo3 Next: E4vmPtm2cn5MuFoNZjZRqoiQuRSAbEug5hD2Pt2gnyEL Diff:
OldNewDifferences
2727
2828
2929 @Callable(a)
30-func verificarVencedor (d) = {
31- let e = d
32- if (containsElement(e, 3))
33- then [StringEntry("1", "Achou 3")]
34- else if (containsElement(e, 0))
35- then [StringEntry("0", "Achou 0")]
36- else [StringEntry("Ambos", "Empate")]
37- }
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 containsElement(d, 6)
34+ else false)
35+ then [StringEntry("Jogador", "Perdeu")]
36+ else [StringEntry("Ambos", "Empate")]
3837
3938
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44
55
66 @Callable(a)
77 func myToken () = $Tuple2([Issue(("T_tcc_" + take(toBase58String(a.caller.bytes), 6)), "", 100000, 2, true)], unit)
88
99
1010
1111 @Callable(a)
1212 func claimToken () = {
1313 let b = a.caller
1414 let c = fromBase58String("BTPiCeAEd4EKkCyyRTjDNw3fymD7Pvor6PQAyVPN32ZS")
1515 [ScriptTransfer(b, 200, c)]
1616 }
1717
1818
1919
2020 @Callable(a)
2121 func depositToken () = {
2222 let b = toBase58String(a.caller.bytes)
2323 let c = fromBase58String("BTPiCeAEd4EKkCyyRTjDNw3fymD7Pvor6PQAyVPN32ZS")
2424 [StringEntry(b, "100")]
2525 }
2626
2727
2828
2929 @Callable(a)
30-func verificarVencedor (d) = {
31- let e = d
32- if (containsElement(e, 3))
33- then [StringEntry("1", "Achou 3")]
34- else if (containsElement(e, 0))
35- then [StringEntry("0", "Achou 0")]
36- else [StringEntry("Ambos", "Empate")]
37- }
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 containsElement(d, 6)
34+ else false)
35+ then [StringEntry("Jogador", "Perdeu")]
36+ else [StringEntry("Ambos", "Empate")]
3837
3938

github/deemru/w8io/169f3d6 
33.19 ms