tx · 297F7eHs8wMMjeFuxLfSqSw7KN7NZX2UwXvWVrALusRS

3MwpUQwpSfHV1rFfHqCuuYL7A9K8ursTQWk:  -0.01400000 Waves

2018.10.08 14:14 [366465] smart account 3MwpUQwpSfHV1rFfHqCuuYL7A9K8ursTQWk > SELF 0.00000000 Waves

{ "type": 13, "id": "297F7eHs8wMMjeFuxLfSqSw7KN7NZX2UwXvWVrALusRS", "fee": 1400000, "feeAssetId": null, "timestamp": 1538997285033, "version": 1, "sender": "3MwpUQwpSfHV1rFfHqCuuYL7A9K8ursTQWk", "senderPublicKey": "5ydncg624xM6LmJKWJ26iZoy7XBdGx9JxcgqKMNhJPaz", "proofs": [ "1L48XMfjAp2DJFD2ckzK75Y8QkgNr4htSyKNw4ET66rMnu9TNWr499UDVvHErAQxGcg5K6FFnvdgRArT5J62mKs" ], "script": "base64:AQQAAAAHJG1hdGNoMAUAAAACdHgDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAD0RhdGFUcmFuc2FjdGlvbgQAAAACZHQFAAAAByRtYXRjaDAEAAAABnR4c2l6ZQkAAZAAAAABCAUAAAACZHQAAAAEZGF0YQQAAAASZ2FtZUluaXRpYWxpemF0aW9uAwkAAAAAAAACCQEAAAAHZXh0cmFjdAAAAAEJAAQQAAAAAggFAAAAAmR0AAAABGRhdGECAAAAB2NvbW1hbmQAAAAAAAAAAAAJAAAAAAAAAgkBAAAAB2V4dHJhY3QAAAABCQAEEAAAAAIIBQAAAAJkdAAAAARkYXRhAgAAAAlnYW1lU3RhdGUAAAAAAAAAAAAHBQAAABJnYW1lSW5pdGlhbGl6YXRpb24GQs4HDQ==", "chainId": 84, "height": 366465, "spentComplexity": 0 } View: original | compacted Prev: DsCsyprWTfDCA2qxSRp7Gj1QAGiLqf7sKmdmmiUupiQJ Next: 8LDrWQDp3Dz9kKugKrdjBLpgWeMHwf4uPmrWAZbKo8CQ Diff:
OldNewDifferences
33 match tx {
44 case dt: DataTransaction =>
55 let txsize = size(dt.data)
6- let gameNotStarted = match getInteger(dt.sender, "gameState") {
7- case i: Int =>
8- false
9- case _ =>
10- true
11- }
12- let gameInitialization = if (if (gameNotStarted)
13- then (extract(getInteger(dt.data, "command")) == 0)
14- else false)
6+ let gameInitialization = if ((extract(getInteger(dt.data, "command")) == 0))
157 then (extract(getInteger(dt.data, "gameState")) == 0)
168 else false
17- let playersRegistration = if (if (if (if ((extract(getInteger(dt.sender, "gameState")) == 0))
18- then (extract(getInteger(dt.data, "command")) == 1)
19- else false)
20- then (extract(getInteger(dt.data, "gameState")) == 1)
21- else false)
22- then (extract(getString(dt.data, "player1")) == "")
23- else false)
24- then (extract(getString(dt.data, "player2")) == "")
25- else false
26- let player1Registration = if (if ((extract(getInteger(dt.data, "command")) == 1))
27- then (extract(getInteger(dt.data, "gameState")) == 2)
28- else false)
29- then sigVerify(dt.bodyBytes, dt.proofs[0], fromBase58String(extract(getString(dt.data, "player1"))))
30- else false
31- let player2Registration = if (if (if ((extract(getInteger(dt.sender, "gameState")) == 2))
32- then (extract(getInteger(dt.data, "command")) == 3)
33- else false)
34- then (extract(getInteger(dt.data, "gameState")) == 3)
35- else false)
36- then sigVerify(dt.bodyBytes, dt.proofs[0], fromBase58String(extract(getString(dt.data, "player2"))))
37- else false
38- let gameBegin = if (if ((extract(getInteger(dt.sender, "gameState")) == 3))
39- then (extract(getInteger(dt.data, "command")) == 4)
40- else false)
41- then (extract(getInteger(dt.data, "gameState")) == 4)
42- else false
43- let move1 = if (if (if (if ((extract(getInteger(dt.sender, "gameState")) == 4))
44- then (extract(getInteger(dt.data, "command")) == 5)
45- else false)
46- then (extract(getInteger(dt.data, "gameState")) == 5)
47- else false)
48- then (2 >= extract(getInteger(dt.data, "move")))
49- else false)
50- then sigVerify(dt.bodyBytes, dt.proofs[0], fromBase58String(extract(getString(dt.data, "player1"))))
51- else false
52- let move2 = if (if (if (if ((extract(getInteger(dt.sender, "gameState")) == 5))
53- then (extract(getInteger(dt.data, "command")) == 6)
54- else false)
55- then (extract(getInteger(dt.data, "gameState")) == 6)
56- else false)
57- then (2 >= extract(getInteger(dt.data, "move")))
58- else false)
59- then sigVerify(dt.bodyBytes, dt.proofs[0], fromBase58String(extract(getString(dt.data, "player2"))))
60- else false
61- let gameEnd = if (if ((extract(getInteger(dt.sender, "gameState")) == 6))
62- then (extract(getInteger(dt.data, "command")) == 7)
63- else false)
64- then (extract(getString(dt.data, "gameState")) == "ended")
65- else false
66- if (if (if (if (if (if (gameInitialization)
67- then playersRegistration
68- else false)
69- then player2Registration
70- else false)
71- then gameBegin
72- else false)
73- then move1
74- else false)
75- then move2
76- else false)
77- then gameEnd
78- else false
9+ gameInitialization
7910 case _ =>
8011 true
8112 }
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 1 #-}
22 {-# CONTENT_TYPE EXPRESSION #-}
33 match tx {
44 case dt: DataTransaction =>
55 let txsize = size(dt.data)
6- let gameNotStarted = match getInteger(dt.sender, "gameState") {
7- case i: Int =>
8- false
9- case _ =>
10- true
11- }
12- let gameInitialization = if (if (gameNotStarted)
13- then (extract(getInteger(dt.data, "command")) == 0)
14- else false)
6+ let gameInitialization = if ((extract(getInteger(dt.data, "command")) == 0))
157 then (extract(getInteger(dt.data, "gameState")) == 0)
168 else false
17- let playersRegistration = if (if (if (if ((extract(getInteger(dt.sender, "gameState")) == 0))
18- then (extract(getInteger(dt.data, "command")) == 1)
19- else false)
20- then (extract(getInteger(dt.data, "gameState")) == 1)
21- else false)
22- then (extract(getString(dt.data, "player1")) == "")
23- else false)
24- then (extract(getString(dt.data, "player2")) == "")
25- else false
26- let player1Registration = if (if ((extract(getInteger(dt.data, "command")) == 1))
27- then (extract(getInteger(dt.data, "gameState")) == 2)
28- else false)
29- then sigVerify(dt.bodyBytes, dt.proofs[0], fromBase58String(extract(getString(dt.data, "player1"))))
30- else false
31- let player2Registration = if (if (if ((extract(getInteger(dt.sender, "gameState")) == 2))
32- then (extract(getInteger(dt.data, "command")) == 3)
33- else false)
34- then (extract(getInteger(dt.data, "gameState")) == 3)
35- else false)
36- then sigVerify(dt.bodyBytes, dt.proofs[0], fromBase58String(extract(getString(dt.data, "player2"))))
37- else false
38- let gameBegin = if (if ((extract(getInteger(dt.sender, "gameState")) == 3))
39- then (extract(getInteger(dt.data, "command")) == 4)
40- else false)
41- then (extract(getInteger(dt.data, "gameState")) == 4)
42- else false
43- let move1 = if (if (if (if ((extract(getInteger(dt.sender, "gameState")) == 4))
44- then (extract(getInteger(dt.data, "command")) == 5)
45- else false)
46- then (extract(getInteger(dt.data, "gameState")) == 5)
47- else false)
48- then (2 >= extract(getInteger(dt.data, "move")))
49- else false)
50- then sigVerify(dt.bodyBytes, dt.proofs[0], fromBase58String(extract(getString(dt.data, "player1"))))
51- else false
52- let move2 = if (if (if (if ((extract(getInteger(dt.sender, "gameState")) == 5))
53- then (extract(getInteger(dt.data, "command")) == 6)
54- else false)
55- then (extract(getInteger(dt.data, "gameState")) == 6)
56- else false)
57- then (2 >= extract(getInteger(dt.data, "move")))
58- else false)
59- then sigVerify(dt.bodyBytes, dt.proofs[0], fromBase58String(extract(getString(dt.data, "player2"))))
60- else false
61- let gameEnd = if (if ((extract(getInteger(dt.sender, "gameState")) == 6))
62- then (extract(getInteger(dt.data, "command")) == 7)
63- else false)
64- then (extract(getString(dt.data, "gameState")) == "ended")
65- else false
66- if (if (if (if (if (if (gameInitialization)
67- then playersRegistration
68- else false)
69- then player2Registration
70- else false)
71- then gameBegin
72- else false)
73- then move1
74- else false)
75- then move2
76- else false)
77- then gameEnd
78- else false
9+ gameInitialization
7910 case _ =>
8011 true
8112 }

github/deemru/w8io/169f3d6 
86.27 ms