tx · FBZ9LCa1AhjgobA3745VTSjFDxyHbtA8JuRye1DsWwCo

3MwpUQwpSfHV1rFfHqCuuYL7A9K8ursTQWk:  -0.01420000 Waves

2018.10.08 18:37 [366732] smart account 3MwpUQwpSfHV1rFfHqCuuYL7A9K8ursTQWk > SELF 0.00000000 Waves

{ "type": 13, "id": "FBZ9LCa1AhjgobA3745VTSjFDxyHbtA8JuRye1DsWwCo", "fee": 1420000, "feeAssetId": null, "timestamp": 1539013139253, "version": 1, "sender": "3MwpUQwpSfHV1rFfHqCuuYL7A9K8ursTQWk", "senderPublicKey": "5ydncg624xM6LmJKWJ26iZoy7XBdGx9JxcgqKMNhJPaz", "proofs": [ "eSxPCBMiYodRbNjkBySYojWvgSkeiGcfBHj838kApsHBFxAFFxT9jpECpfg6XzS6nH5EjwJbN2xWMCxtn2HeMCE" ], "script": "base64:AQQAAAAHJG1hdGNoMAUAAAACdHgDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAD0RhdGFUcmFuc2FjdGlvbgQAAAACZHQFAAAAByRtYXRjaDAEAAAADmdhbWVOb3RTdGFydGVkBAAAAAckbWF0Y2gxCQAEGgAAAAIIBQAAAAJkdAAAAAZzZW5kZXICAAAACWdhbWVTdGF0ZQMJAAABAAAAAgUAAAAHJG1hdGNoMQIAAAADSW50BAAAAAFpBQAAAAckbWF0Y2gxBwYEAAAADG9sZEdhbWVTdGF0ZQkBAAAAB2V4dHJhY3QAAAABCQAEGgAAAAIIBQAAAAJkdAAAAAZzZW5kZXICAAAACWdhbWVTdGF0ZQQAAAAMbmV3R2FtZVN0YXRlCQEAAAAHZXh0cmFjdAAAAAEJAAQQAAAAAggFAAAAAmR0AAAABGRhdGECAAAACWdhbWVTdGF0ZQQAAAAJdmFsaWRTdGVwCQAAAAAAAAIJAABkAAAAAgUAAAAMb2xkR2FtZVN0YXRlAAAAAAAAAAABBQAAAAxuZXdHYW1lU3RhdGUEAAAAEmdhbWVJbml0aWFsaXphdGlvbgMDBQAAAA5nYW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4dHJhY3QAAAABCQAEGgAAAAIIBQAAAAJkdAAAAAZzZW5kZXICAAAACWdhbWVTdGF0ZQAAAAAAAAAABgkAAAAAAAACCQEAAAAHZXh0cmFjdAAAAAEJAAQQAAAAAggFAAAAAmR0AAAABGRhdGECAAAAB2NvbW1hbmQAAAAAAAAAAAcHCQAAAAAAAAIJAQAAAAdleHRyYWN0AAAAAQkABBMAAAACCAUAAAACZHQAAAAEZGF0YQIAAAAJZ2FtZVN0YXRlAgAAAAVlbmRlZAcDAwMDAwMDBQAAABJnYW1lSW5pdGlhbGl6YXRpb24GBQAAABNwbGF5ZXJzUmVnaXN0cmF0aW9uBgUAAAATcGxheWVyMVJlZ2lzdHJhdGlvbgYFAAAAE3BsYXllcjJSZWdpc3RyYXRpb24GBQAAAAlnYW1lQmVnaW4GBQAAAAVtb3ZlMQYFAAAABW1vdmUyBgUAAAAHZ2FtZUVuZAbv8561", "chainId": 84, "height": 366732, "spentComplexity": 0 } View: original | compacted Prev: 4FwY8LJRfBDe4hcfBUAdvHUPGveS9ttvTUZgP9pWQLbL Next: 5Hv5XwkwYmRt79KTgtsW19r6zo72R61FP5sjhT2BMXaF Diff:
OldNewDifferences
3939 let move1 = if (if (if (validStep)
4040 then (extract(getInteger(dt.data, "command")) == 5)
4141 else false)
42- then (2 >= extract(getInteger(dt.data, "move")))
42+ then (2 >= extract(getInteger(dt.data, "move1")))
4343 else false)
4444 then sigVerify(dt.bodyBytes, dt.proofs[0], fromBase58String(extract(getString(dt.data, "player1"))))
4545 else false
4646 let move2 = if (if (if (validStep)
4747 then (extract(getInteger(dt.data, "command")) == 6)
4848 else false)
49- then (2 >= extract(getInteger(dt.data, "move")))
49+ then (2 >= extract(getInteger(dt.data, "move2")))
5050 else false)
5151 then sigVerify(dt.bodyBytes, dt.proofs[0], fromBase58String(extract(getString(dt.data, "player2"))))
5252 else false
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 1 #-}
22 {-# CONTENT_TYPE EXPRESSION #-}
33 match tx {
44 case dt: DataTransaction =>
55 let gameNotStarted = match getInteger(dt.sender, "gameState") {
66 case i: Int =>
77 false
88 case _ =>
99 true
1010 }
1111 let oldGameState = extract(getInteger(dt.sender, "gameState"))
1212 let newGameState = extract(getInteger(dt.data, "gameState"))
1313 let validStep = ((oldGameState + 1) == newGameState)
1414 let gameInitialization = if (if (gameNotStarted)
1515 then (extract(getInteger(dt.data, "command")) == 0)
1616 else false)
1717 then (extract(getInteger(dt.data, "gameState")) == 0)
1818 else false
1919 let playersRegistration = if (if (if (validStep)
2020 then (extract(getInteger(dt.data, "command")) == 1)
2121 else false)
2222 then (extract(getString(dt.data, "player1")) == "")
2323 else false)
2424 then (extract(getString(dt.data, "player2")) == "")
2525 else false
2626 let player1Registration = if (if (validStep)
2727 then (extract(getInteger(dt.data, "command")) == 2)
2828 else false)
2929 then sigVerify(dt.bodyBytes, dt.proofs[0], fromBase58String(extract(getString(dt.data, "player1"))))
3030 else false
3131 let player2Registration = if (if (validStep)
3232 then (extract(getInteger(dt.data, "command")) == 3)
3333 else false)
3434 then sigVerify(dt.bodyBytes, dt.proofs[0], fromBase58String(extract(getString(dt.data, "player2"))))
3535 else false
3636 let gameBegin = if (validStep)
3737 then (extract(getInteger(dt.data, "command")) == 4)
3838 else false
3939 let move1 = if (if (if (validStep)
4040 then (extract(getInteger(dt.data, "command")) == 5)
4141 else false)
42- then (2 >= extract(getInteger(dt.data, "move")))
42+ then (2 >= extract(getInteger(dt.data, "move1")))
4343 else false)
4444 then sigVerify(dt.bodyBytes, dt.proofs[0], fromBase58String(extract(getString(dt.data, "player1"))))
4545 else false
4646 let move2 = if (if (if (validStep)
4747 then (extract(getInteger(dt.data, "command")) == 6)
4848 else false)
49- then (2 >= extract(getInteger(dt.data, "move")))
49+ then (2 >= extract(getInteger(dt.data, "move2")))
5050 else false)
5151 then sigVerify(dt.bodyBytes, dt.proofs[0], fromBase58String(extract(getString(dt.data, "player2"))))
5252 else false
5353 let gameEnd = if (if ((extract(getInteger(dt.sender, "gameState")) == 6))
5454 then (extract(getInteger(dt.data, "command")) == 7)
5555 else false)
5656 then (extract(getString(dt.data, "gameState")) == "ended")
5757 else false
5858 if (if (if (if (if (if (if (gameInitialization)
5959 then true
6060 else playersRegistration)
6161 then true
6262 else player1Registration)
6363 then true
6464 else player2Registration)
6565 then true
6666 else gameBegin)
6767 then true
6868 else move1)
6969 then true
7070 else move2)
7171 then true
7272 else gameEnd
7373 case _ =>
7474 true
7575 }

github/deemru/w8io/169f3d6 
34.39 ms