tx · EqHLx75VBAapRe79PTwqATPv6hhDHJPdnSzkkAYpozxb 3MwpUQwpSfHV1rFfHqCuuYL7A9K8ursTQWk: -0.01420000 Waves 2018.10.08 18:09 [366702] smart account 3MwpUQwpSfHV1rFfHqCuuYL7A9K8ursTQWk > SELF 0.00000000 Waves
{ "type": 13, "id": "EqHLx75VBAapRe79PTwqATPv6hhDHJPdnSzkkAYpozxb", "fee": 1420000, "feeAssetId": null, "timestamp": 1539011347052, "version": 1, "sender": "3MwpUQwpSfHV1rFfHqCuuYL7A9K8ursTQWk", "senderPublicKey": "5ydncg624xM6LmJKWJ26iZoy7XBdGx9JxcgqKMNhJPaz", "proofs": [ "5f8XJiuFtZ3QM6bBsqWiEXrpth6QfM9GnMsUUHgfStD8AAe4CK4d4UH2yRHmovACGXVVNMFTNnRKMEPfqNNpm6f7" ], "script": "base64:AQQAAAAHJG1hdGNoMAUAAAACdHgDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAD0RhdGFUcmFuc2FjdGlvbgQAAAACZHQFAAAAByRtYXRjaDAEAAAADmdhbWVOb3RTdGFydGVkBAAAAAckbWF0Y2gxCQAEGgAAAAIIBQAAAAJkdAAAAAZzZW5kZXICAAAACWdhbWVTdGF0ZQMJAAABAAAAAgUAAAAHJG1hdGNoMQIAAAADSW50BAAAAAFpBQAAAAckbWF0Y2gxBwYEAAAAEmdhbWVJbml0aWFsaXphdGlvbgMDBQAAAA5nYW1lTm90U3RhcnRlZAkAAAAAAAACCQEAAAAHZXh0cmFjdAAAAAEJAAQQAAAAAggFAAAAAmR0AAAABGRhdGECAAAAB2NvbW1hbmQAAAAAAAAAAAAHCQAAAAAAAAIJAQAAAAdleHRyYWN0AAAAAQkABBAAAAACCAUAAAACZHQAAAAEZGF0YQIAAAAJZ2FtZVN0YXRlAAAAAAAAAAAABwQAAAATcGxheWVyc1JlZ2lzdHJhdGlvbgMDAwMJAAAAAAAAAgkBAAAAB2V4dHJhY3QAAAABCQAEGgAAAAIIBQAAAA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ZXh0cmFjdAAAAAEJAAQQAAAAAggFAAAAAmR0AAAABGRhdGECAAAAB2NvbW1hbmQAAAAAAAAAAAMHCQAAAAAAAAIJAQAAAAdleHRyYWN0AAAAAQkABBAAAAACCAUAAAACZHQAAAAEZGF0YQIAAAAJZ2FtZVN0YXRlAAAAAAAAAAADBwkAAfQAAAADCAUAAAACZHQAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJkdAAAAAZwcm9vZnMAAAAAAAAAAAAJAAJZAAAAAQkBAAAAB2V4dHJhY3QAAAABCQAEEwAAAAIIBQAAAAJkdAAAAARkYXRhAgAAAAdwbGF5ZXIyBwMDAwUAAAASZ2FtZUluaXRpYWxpemF0aW9uBgUAAAATcGxheWVyc1JlZ2lzdHJhdGlvbgYFAAAAE3BsYXllcjFSZWdpc3RyYXRpb24GBQAAABNwbGF5ZXIyUmVnaXN0cmF0aW9uBj2YCxI=", "chainId": 84, "height": 366702, "spentComplexity": 0 } View: original | compacted Prev: 8sqKkWHoyHS89hXLV4FYsJWU26SaEGixASvZ66X5RP8v Next: 4FwY8LJRfBDe4hcfBUAdvHUPGveS9ttvTUZgP9pWQLbL Diff:
Old | New | Differences | |
---|---|---|---|
29 | 29 | else false) | |
30 | 30 | then sigVerify(dt.bodyBytes, dt.proofs[0], fromBase58String(extract(getString(dt.data, "player1")))) | |
31 | 31 | else false | |
32 | - | if (if (gameInitialization) | |
32 | + | let player2Registration = if (if (if ((extract(getInteger(dt.sender, "gameState")) == 2)) | |
33 | + | then (extract(getInteger(dt.data, "command")) == 3) | |
34 | + | else false) | |
35 | + | then (extract(getInteger(dt.data, "gameState")) == 3) | |
36 | + | else false) | |
37 | + | then sigVerify(dt.bodyBytes, dt.proofs[0], fromBase58String(extract(getString(dt.data, "player2")))) | |
38 | + | else false | |
39 | + | if (if (if (gameInitialization) | |
33 | 40 | then true | |
34 | 41 | else playersRegistration) | |
35 | 42 | then true | |
36 | - | else player1Registration | |
43 | + | else player1Registration) | |
44 | + | then true | |
45 | + | else player2Registration | |
37 | 46 | case _ => | |
38 | 47 | true | |
39 | 48 | } |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 1 #-} | |
2 | 2 | {-# CONTENT_TYPE EXPRESSION #-} | |
3 | 3 | match tx { | |
4 | 4 | case dt: DataTransaction => | |
5 | 5 | let gameNotStarted = match getInteger(dt.sender, "gameState") { | |
6 | 6 | case i: Int => | |
7 | 7 | false | |
8 | 8 | case _ => | |
9 | 9 | true | |
10 | 10 | } | |
11 | 11 | let gameInitialization = if (if (gameNotStarted) | |
12 | 12 | then (extract(getInteger(dt.data, "command")) == 0) | |
13 | 13 | else false) | |
14 | 14 | then (extract(getInteger(dt.data, "gameState")) == 0) | |
15 | 15 | else false | |
16 | 16 | let playersRegistration = if (if (if (if ((extract(getInteger(dt.sender, "gameState")) == 0)) | |
17 | 17 | then (extract(getInteger(dt.data, "command")) == 1) | |
18 | 18 | else false) | |
19 | 19 | then (extract(getInteger(dt.data, "gameState")) == 1) | |
20 | 20 | else false) | |
21 | 21 | then (extract(getString(dt.data, "player1")) == "") | |
22 | 22 | else false) | |
23 | 23 | then (extract(getString(dt.data, "player2")) == "") | |
24 | 24 | else false | |
25 | 25 | let player1Registration = if (if (if ((extract(getInteger(dt.sender, "gameState")) == 1)) | |
26 | 26 | then (extract(getInteger(dt.data, "command")) == 2) | |
27 | 27 | else false) | |
28 | 28 | then (extract(getInteger(dt.data, "gameState")) == 2) | |
29 | 29 | else false) | |
30 | 30 | then sigVerify(dt.bodyBytes, dt.proofs[0], fromBase58String(extract(getString(dt.data, "player1")))) | |
31 | 31 | else false | |
32 | - | if (if (gameInitialization) | |
32 | + | let player2Registration = if (if (if ((extract(getInteger(dt.sender, "gameState")) == 2)) | |
33 | + | then (extract(getInteger(dt.data, "command")) == 3) | |
34 | + | else false) | |
35 | + | then (extract(getInteger(dt.data, "gameState")) == 3) | |
36 | + | else false) | |
37 | + | then sigVerify(dt.bodyBytes, dt.proofs[0], fromBase58String(extract(getString(dt.data, "player2")))) | |
38 | + | else false | |
39 | + | if (if (if (gameInitialization) | |
33 | 40 | then true | |
34 | 41 | else playersRegistration) | |
35 | 42 | then true | |
36 | - | else player1Registration | |
43 | + | else player1Registration) | |
44 | + | then true | |
45 | + | else player2Registration | |
37 | 46 | case _ => | |
38 | 47 | true | |
39 | 48 | } |
github/deemru/w8io/026f985 18.70 ms ◑