tx · 7W5CbXmH6VAFqVV3e6E6SF86du2vbtxwL3SKQZEVvgve
3MwpUQwpSfHV1rFfHqCuuYL7A9K8ursTQWk: -0.01420000 Waves
2018.10.08 17:55 [366683] smart account 3MwpUQwpSfHV1rFfHqCuuYL7A9K8ursTQWk > SELF 0.00000000 Waves
{
"type": 13,
"id": "7W5CbXmH6VAFqVV3e6E6SF86du2vbtxwL3SKQZEVvgve",
"fee": 1420000,
"feeAssetId": null,
"timestamp": 1539010470231,
"version": 1,
"sender": "3MwpUQwpSfHV1rFfHqCuuYL7A9K8ursTQWk",
"senderPublicKey": "5ydncg624xM6LmJKWJ26iZoy7XBdGx9JxcgqKMNhJPaz",
"proofs": [
"2PWvd1xjaivSmrgQJkCoqTEFKNc3Vw5m1T8QFoR8WqnfjVmWVAkhZ3Fo448JbbvEx1GponGW5nVyDJsYbxxc532J"
],
"script": "base64:AQQAAAAHJG1hdGNoMAUAAAACdHgDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAD0RhdGFUcmFuc2FjdGlvbgQAAAACZHQFAAAAByRtYXRjaDAEAAAADmdhbWVOb3RTdGFydGVkBAAAAAckbWF0Y2gxCQAEGgAAAAIIBQAAAAJkdAAAAAZzZW5kZXICAAAACWdhbWVTdGF0ZQMJAAABAAAAAgUAAAAHJG1hdGNoMQIAAAADSW50BAAAAAFpBQAAAAckbWF0Y2gxBwYEAAAAEmdhbWVJbml0aWFsaXphdGlvbgMDBQAAAA5nYW1lTm90U3RhcnRlZAkAAAAAAAACCQEAAAAHZXh0cmFjdAAAAAEJAAQQAAAAAggFAAAAAmR0AAAABGRhdGECAAAAB2NvbW1hbmQAAAAAAAAAAAAHCQAAAAAAAAIJAQAAAAdleHRyYWN0AAAAAQkABBAAAAACCAUAAAACZHQAAAAEZGF0YQIAAAAJZ2FtZVN0YXRlAAAAAAAAAAAABwQAAAATcGxheWVyc1JlZ2lzdHJhdGlvbgMDAwMJAAAAAAAAAgkBAAAAB2V4dHJhY3QAAAABCQAEGgAAAAIIBQAAAAJkdAAAAAZzZW5kZXICAAAACWdhbWVTdGF0ZQAAAAAAAAAAAAkAAAAAAAACCQEAAAAHZXh0cmFjdAAAAAEJAAQQAAAAAggFAAAAAmR0AAAABGRhdGECAAAAB2NvbW1hbmQAAAAAAAAAAAEHCQAAAAAAAAIJAQAAAAdleHRyYWN0AAAAAQkABBAAAAACCAUAAAACZHQAAAAEZGF0YQIAAAAJZ2FtZVN0YXRlAAAAAAAAAAABBwkAAAAAAAACCQEAAAAHZXh0cmFjdAAAAAEJAAQTAAAAAggFAAAAAmR0AAAABGRhdGECAAAAB3BsYXllcjECAAAAAAcJAAAAAAAAAgkBAAAAB2V4dHJhY3QAAAABCQAEEwAAAAIIBQAAAAJkdAAAAARkYXRhAgAAAAdwbGF5ZXIyAgAAAAAHAwUAAAASZ2FtZUluaXRpYWxpemF0aW9uBgUAAAATcGxheWVyc1JlZ2lzdHJhdGlvbgbdHDC6",
"chainId": 84,
"height": 366683,
"spentComplexity": 0
}
View: original | compacted
Prev: WGCgMeHB45zm79KudBU8iJaLZARUsPGnZitLXHujaad
Next: 5XjskYdMhnnsV2atunk5S1qkazJGx8bMdYEwXnFvrhgJ
Diff:
Old | New | | Differences |
---|
2 | 2 | | {-# CONTENT_TYPE EXPRESSION #-} |
---|
3 | 3 | | match tx { |
---|
4 | 4 | | case dt: DataTransaction => |
---|
5 | | - | true |
---|
| 5 | + | let gameNotStarted = match getInteger(dt.sender, "gameState") { |
---|
| 6 | + | case i: Int => |
---|
| 7 | + | false |
---|
| 8 | + | case _ => |
---|
| 9 | + | true |
---|
| 10 | + | } |
---|
| 11 | + | let gameInitialization = if (if (gameNotStarted) |
---|
| 12 | + | then (extract(getInteger(dt.data, "command")) == 0) |
---|
| 13 | + | else false) |
---|
| 14 | + | then (extract(getInteger(dt.data, "gameState")) == 0) |
---|
| 15 | + | else false |
---|
| 16 | + | let playersRegistration = if (if (if (if ((extract(getInteger(dt.sender, "gameState")) == 0)) |
---|
| 17 | + | then (extract(getInteger(dt.data, "command")) == 1) |
---|
| 18 | + | else false) |
---|
| 19 | + | then (extract(getInteger(dt.data, "gameState")) == 1) |
---|
| 20 | + | else false) |
---|
| 21 | + | then (extract(getString(dt.data, "player1")) == "") |
---|
| 22 | + | else false) |
---|
| 23 | + | then (extract(getString(dt.data, "player2")) == "") |
---|
| 24 | + | else false |
---|
| 25 | + | if (gameInitialization) |
---|
| 26 | + | then true |
---|
| 27 | + | else playersRegistration |
---|
6 | 28 | | case _ => |
---|
7 | 29 | | true |
---|
8 | 30 | | } |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 1 #-} |
---|
2 | 2 | | {-# CONTENT_TYPE EXPRESSION #-} |
---|
3 | 3 | | match tx { |
---|
4 | 4 | | case dt: DataTransaction => |
---|
5 | | - | true |
---|
| 5 | + | let gameNotStarted = match getInteger(dt.sender, "gameState") { |
---|
| 6 | + | case i: Int => |
---|
| 7 | + | false |
---|
| 8 | + | case _ => |
---|
| 9 | + | true |
---|
| 10 | + | } |
---|
| 11 | + | let gameInitialization = if (if (gameNotStarted) |
---|
| 12 | + | then (extract(getInteger(dt.data, "command")) == 0) |
---|
| 13 | + | else false) |
---|
| 14 | + | then (extract(getInteger(dt.data, "gameState")) == 0) |
---|
| 15 | + | else false |
---|
| 16 | + | let playersRegistration = if (if (if (if ((extract(getInteger(dt.sender, "gameState")) == 0)) |
---|
| 17 | + | then (extract(getInteger(dt.data, "command")) == 1) |
---|
| 18 | + | else false) |
---|
| 19 | + | then (extract(getInteger(dt.data, "gameState")) == 1) |
---|
| 20 | + | else false) |
---|
| 21 | + | then (extract(getString(dt.data, "player1")) == "") |
---|
| 22 | + | else false) |
---|
| 23 | + | then (extract(getString(dt.data, "player2")) == "") |
---|
| 24 | + | else false |
---|
| 25 | + | if (gameInitialization) |
---|
| 26 | + | then true |
---|
| 27 | + | else playersRegistration |
---|
6 | 28 | | case _ => |
---|
7 | 29 | | true |
---|
8 | 30 | | } |
---|